Page 1 of 1

Basic Question

Posted: Fri Jul 09, 2004 12:53 am
by bishup
I was wonder if there is a way that PHP can reload a page (or go to another page) if a criteria is met.


example:

redirect a user from page_a.php (where the user is)
to page_b.php
or reload the page the user is on page_a.php



Sorry about the newb question, but I couldn't find good information in the searchs, either to much or to little info.

thnx

Posted: Fri Jul 09, 2004 1:10 am
by ol4pr0
If you mean auto refresh no. if you mean have the values of a form being processed on the same page yes. ( look for $_SERVER['PHP_SELF'] )

As for redirect you can use

Code: Select all

header("location:youreredirectpage.php");