Tag Archives: Redirect

Redirect After Successful Submission

In online forms such as membership signup, login etc, all require the form to redirect to another page such as welcome page after successful form submission. PHP Database Form has a method called redirect_after_submit() to handle redirect.

// ... code omitted
$dbForm -> load_form(9);
$dbForm -> redirect_after_submit("http://example.com");
$dbForm -> display();

Live demo