[PHP] Re: post redirect
if you redirect the browser to a new page, once that new page loads up, any POST or GET variables from the previous page will be replaced with the new redirected to page. Jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? Thanks, Jem777 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: post redirect
hello, I created little script in PHP 5 in which I entered the following line form name=transfert method=post action=wogl_transfert.php input name=rep_final type=hidden value=?=$rep_final? input name=rep_source type=hidden value=?=$rep_source? input type=submit value=TRANSFERT the hidden input helped me to keep the rep_source variable with the same value in the next page than in the new page. I'm not a specialist but it has been working well until today. Olivier energize! -Message d'origine- De : Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Envoyé : mercredi 20 avril 2005 04:39 À : php-general@lists.php.net Objet : [PHP] Re: post redirect * Jem777 [EMAIL PROTECTED]: If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? No. HTTP requests are stateless, meaning they have no memory of what requests happened before or after, or how those requests were made. PHP does not affect that behaviour at all; it's entirely a matter of the HTTP protocol. If you want the POST variables to propogate to the redirected page, use a session. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http://vermontbotanical.org -- 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] Re: post redirect
Please don't hijack threads. Olivier GOEGEL wrote: hello, I created little script in PHP 5 in which I entered the following line form name=transfert method=post action=wogl_transfert.php input name=rep_final type=hidden value=?=$rep_final? input name=rep_source type=hidden value=?=$rep_source? input type=submit value=TRANSFERT the hidden input helped me to keep the rep_source variable with the same value in the next page than in the new page. I'm not a specialist but it has been working well until today. Read this, and check your settings... http://us4.php.net/register_globals -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: post redirect
* Jem777 [EMAIL PROTECTED]: If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? No. HTTP requests are stateless, meaning they have no memory of what requests happened before or after, or how those requests were made. PHP does not affect that behaviour at all; it's entirely a matter of the HTTP protocol. If you want the POST variables to propogate to the redirected page, use a session. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http://vermontbotanical.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php