Re: Form Variable Problem
| From: | Christopher Dray | Date: | Wed, 14 Jun 2000 15:11:29 +0000 |
| Subject: | Re: Form Variable Problem | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-454@lists.php.net to get a copy of this message | ||
Michael Shan wrote:
> 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;
> ?>
Could it be that 'register_globals' is set to off in you 'php.ini'. I'm
learning
as well, so I could be wrong, but it seems worth a try. I noticed that
'register_globals' defaults to off in the optimised ini.