[Solved] A button who submits a form and redirect to another page


Using PHP, you can redirect the user after handling the submitted data:

// After handling submitted data, redirect:
header("Location: new-page-here.php");

This is actually recommended, as it stops the user re-submitting the data if they refresh the page.

As per the instructions for header(), do not echo any HTML before it. This includes whitespace before your <?php tag.

solved A button who submits a form and redirect to another page