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

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

What does parsing means in PHP?

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

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

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

Is it possible to have MySQL and PHP run with one provider and the "database driven website" with the other ? Say with the help of only SSI / CGI?

Yes. Let your CGI/SSI include from the urls on your other site. On yourother site you return...

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