So I have an HTML webpage with a form on it. The form sends its data to a PHP file on the server.
After processing the form data with the PHP file, I want to redirect the user to another HTML webpage.
How would I do this?
So I have an HTML webpage with a form on it. The form sends its data to a PHP file on the server.
After processing the form data with the PHP file, I want to redirect the user to another HTML webpage.
How would I do this?
This is usually done by PHP header
function, like this:
header("Location: http://your-domain.com/your-page.php");
You can read more about it in PHP manual or from here.
Though this question is a duplicate. I'll answer it. You do it as follows:
header("Location: http://yourwebsite.com/otherpage.php");
In PHP you have to use below code snippet to redirect from one location to the other.
header("Location: page.php");