Habari\FormUI::bounce PHP Method

bounce() public method

Redirect the user back to the stored URL value in session
public bounce ( $keep_hash = true )
    public function bounce($keep_hash = true)
    {
        $_SESSION['forms'][$this->control_id()]['error_data'] = $this->get_values();
        $url = $_SESSION['forms'][$this->control_id()]['url'];
        if (!$keep_hash) {
            $url = preg_replace('/#.+$/', '', $url);
        }
        Utils::redirect($url);
    }