You are here: Re: How to retain the $_POST variables? « All PHP « IT news, forums, messages
Re: How to retain the $_POST variables?

Posted by J.O. Aho on 05/24/07 19:02

damezumari wrote:
> Tom, when I try your suggestion $_POST['userfirstname'] is empty. It
> has a value in b.php, but I don't get any value when I try to use it
> in a.php.
>
> What am I doing wrong?
>
> You used $_FORM, did you mean $_POST? If not, what is $_FORM?

There isn't any $_FORM global variable in PHP.
Depending on how you redirect the person back to page a, you either use $_POST
or $_GET, when you don't know which method will be used, then use the
$_REQUEST global

Another method is to store values in a session, this way you don't have to
send anything with the redirect.

It's quite obvious that Tom made a typo, at least in my opinion, he meant
$_POST in both cases.

--

//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация