|
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]
|