How to redirect from php page to another php page?

For redirecting, you can use the PHP header() function like so :

header("Location: example.php");

That'll redirect to example.php

Was this answer helpful?

 Print this Article

Also Read

How to refresh a page?

...

How can I call a command line executable from within PHP?

Check out the "Program Execution functions" here :...

What's the best way to start writing a PHP program?

Firstly figure out, on paper, exactly what you want to do. Otherwise, you'll just be coding...

How to send email using PHP script?

...

I'm new to PHP, where should I start?

Well, try this.The official PHP web site as a lot of useful information:   ...