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 send email using PHP script?

...

Why i couldn't fetch my variable from the form?

Register_Globals directive is set to OFF because of potential security issues.  PHP has this...

What is the essence of PHP encryption(using crypt(),mcrypt(),etc)if data on transit isn't safe?

The apathetic response is, of course, "there is no point." If you allowed a login over normal...

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...

Where can I get documentation for the Zend API?

First, here's the official website: http://www.zend.com/en/The official documentation for the...