Page load based on logic
| From: | Michael Harding | Date: | Fri, 30 Jul 2004 21:12:01 +0000 |
| Subject: | Page load based on logic | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-192357@lists.php.net to get a copy of this message | ||
I have a if statement.
if (this){
load page1.php;
} else {
load page2.php;
}
I simply want to go to different page depending on the results of a logic
statement. I can't find a function or statement that allow me to pass the
page to. I am looking for a "load()" or goto() type call.
I do NOT want to do the "header" thing and reload the same page back onto
itself.
I can't believe a language as powerful as PHP does have this basic function.
I must be missing it.
Any suggestions?
Thanks.