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

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

How to send email using PHP script?

...

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

I used PHP for one of the web sites I would like to move over to your hosting service. Is PHP fully supported and (if so) what versions of PHP are supported?

Yes, PHP is fully supported and we do support PHP 5.

What does parsing means in PHP?

Parsing is the process where the php source code (.php, .php3, .php4, .phtml orwhatever) is...