Re: Cannot get data from form.
| From: | Eric Pignot | Date: | Thu, 29 Aug 2002 11:37:58 +0000 |
| Subject: | Re: Cannot get data from form. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114498@lists.php.net to get a copy of this message | ||
This is really a FAQ, I would suggest that you read a bit more documentation
before posting.
Eric
"Le Van Thanh" <thanhlv@hotmail.com> a écrit dans le message de news:
DAV275LqN33HFnwpGR800002a77@hotmail.com...
- I have installed PHP4.2.2 with Apache 1.3.26 on Solaris7.
And now I have problems with getting data from form.
I have 2 pages test.html and welcome.php as following:
----------------test.html---------------------------------------------------
-
<form "userDetails" method="post" action="welcome.php">
Enter your Name: <br>
<input type="text" value="" name="name">
<input type="submit" value="Enter" name="welcome">
</form>
------------------------------welcome.html---------------------------------
?php
print $name ;
?>
===============================
Then I cannot get the value of input name.
But if I write " print $_POST['name'];" or " print
$HTTP_POST_VARS['name'];", it's ok.
Is there something wrong when I install PHP?
Thanks a lot.