Re: [PHP] open php from
Alvaro Martinez wrote: Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what method to use. How can I do it? Thanks http://php.net/header says http://www.php.net/";); /* Redirects the browser to the php website */ exit;/* makes sure the code below doesn't get ecexuted */ ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] open php from
--- DvDmanDT <[EMAIL PROTECTED]> wrote: > Yes, I's said so... Although, I use "Location: newfile.php" in lots > of places and it sure works even if it's the wrong way to do it... > Although, it's not tested with very many browsers so I guess not > everyone can view it (the new page)... Faced with this decision: 1. Right and Works 2. Wrong and Works Why choose the second option when there is practically no difference in effort? In addition, why assume that the wrong way always works? That seems like a dangerous assumption at best. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] open php from
Yes, I's said so... Although, I use "Location: newfile.php" in lots of places and it sure works even if it's the wrong way to do it... Although, it's not tested with very many browsers so I guess not everyone can view it (the new page)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Curt Zirzow" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > * Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]): > > Alvaro, > > > > To redirect use the header function (http://www.php.net/header) > > > > The call would be something like: > > > > header("Location: anotherpage.php"); > > I'd like to add that the location MUST be an absolute url. ie: > Location: http://host.com/anotherpage > > Even if its on the same server. > > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] open php from
Thank you to you them all "Curt Zirzow" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] * Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]): > Alvaro, > > To redirect use the header function (http://www.php.net/header) > > The call would be something like: > > header("Location: anotherpage.php"); I'd like to add that the location MUST be an absolute url. ie: Location: http://host.com/anotherpage Even if its on the same server. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] open php from
* Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]): > Alvaro, > > To redirect use the header function (http://www.php.net/header) > > The call would be something like: > > header("Location: anotherpage.php"); I'd like to add that the location MUST be an absolute url. ie: Location: http://host.com/anotherpage Even if its on the same server. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] open php from
Alvaro, To redirect use the header function (http://www.php.net/header) The call would be something like: header("Location: anotherpage.php"); remember that to use this command nothing can have been printed to the browser before hand. HTH Jonathan On Friday, August 29, 2003, at 11:13 AM, Alvaro Martinez wrote: Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what method to use. How can I do it? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] open php from
header('Location: ' . $newLocation); - Original Message - From: "Alvaro Martinez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 9:13 AM Subject: [PHP] open php from > Hi! > I'm a beginner. I want to redirect from one php page to another php page and > I dont know what method to use. > How can I do it? > Thanks > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] open php from
Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what method to use. How can I do it? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php