RE: [PHP-WINDOWS] Form Variable Problem
| From: | Andrew Phillips | Date: | Wed, 14 Jun 2000 13:44:58 +0000 |
| Subject: | RE: [PHP-WINDOWS] Form Variable Problem | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-451@lists.php.net to get a copy of this message | ||
Try the format:
<?
echo($name);
echo($age);
?>
Try reading the online manual, it tells you how to do all of this.
- Andrew
Andrew Phillips
Applications Developer
Blue Ribbon Internet
2708 Billingsley Road
Columbus, Ohio 43235
Ph: 614.889.9800
Fax: 614.889.9082
Andrew@blueribboninternet.com
http://www.blueribboninternet.com
"we untangle the web"
-----Original Message-----
From: Michael Shan [mailto:shanweizhong@sohu.com]
Sent: Wednesday, June 14, 2000 5:48 AM
To: php-windows@lists.php.net
Subject: [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