Basic Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bishup
Forum Newbie
Posts: 6
Joined: Mon Jul 05, 2004 7:08 pm

Basic Question

Post 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
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post 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");
Post Reply