RE: [PHP-WINDOWS] Form Variable Problem
| From: | UHL Fabrice | Date: | Wed, 14 Jun 2000 10:26:49 +0000 |
| Subject: | RE: [PHP-WINDOWS] Form Variable Problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-448@lists.php.net to get a copy of this message | ||
try $HTTP_GET_VARS["name"] in the other page
hope this help !
UHL Fabrice
Euro-Information-Développements,
Micro CTI
> -----Message d'origine-----
> De: Michael Shan [mailto:shanweizhong@sohu.com]
> Date: mercredi 14 juin 2000 11:48
> À: php-windows@lists.php.net
> Objet: [PHP-WINDOWS] Form Variable Problem
>
>
> Hi All,
>
> I'm learning PHP by using PHP4.0 with Window NT 4.0, IE 5.0 and IIS,
> and I write a form in a page just as mentioned in the tutorial of PHP
> Web Site:
>
> <form method="post" action="result.php">
> Your Name: <input type=text name="name"><br>
> Your Age: <input type=text name="age"><br>
> <input type=submit> <input type=reset>
> </form>
>
> and I display the submitted varibles in another page:
>
> <?
> echo $HTTP_POST_VARS["name"].", you are
> ".$HTTP_POST_VARS["age"]." years
> old.";
> echo $name;
> ?>
>
> The problem is that "echo $name" display nothing as it should
> be, what's the
> problem, can anyone help me?
>
> Thanks in advance.
>
> Michael Shan
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>