simple question
Posted: Wed Nov 06, 2002 10:48 am
I've worked with ASP for a number of years and have just made the switch to PHP because,well, it's better, but anyway... in ASP there's a method you can use to transfer output to another page ie.:
Response.Redirect "http://......"
This sends the page listed in the argument to the client's browser.
Is there an equivalent to this in PHP? I've tried using headers ie:
header (location: "http://.....");
But that only works at the beginning of the page. I want to be able to move the user to a page based on a conditional statement ie.
If (blah){
then load this page...
} else{
load this page.....
}
Any help would be great!
Thanks
1/2abag
Response.Redirect "http://......"
This sends the page listed in the argument to the client's browser.
Is there an equivalent to this in PHP? I've tried using headers ie:
header (location: "http://.....");
But that only works at the beginning of the page. I want to be able to move the user to a page based on a conditional statement ie.
If (blah){
then load this page...
} else{
load this page.....
}
Any help would be great!
Thanks
1/2abag