0

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?

3 Answers3

1

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.

Community
  • 1
  • 1
Hawk
  • 41
  • 5
0

Though this question is a duplicate. I'll answer it. You do it as follows:

header("Location: http://yourwebsite.com/otherpage.php");
-1

In PHP you have to use below code snippet to redirect from one location to the other.

header("Location: page.php");
Divakar Gujjala
  • 803
  • 8
  • 24