No variables imported on form POST
| From: | Jason Annin-White | Date: | Wed, 21 Aug 2002 21:05:57 +0000 |
| Subject: | No variables imported on form POST | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113531@lists.php.net to get a copy of this message | ||
When I do an HTTP POST to a PHP application on my web server, it is not importing the from values as
variables.
For example,
<?php
if ($submit == "click"){
echo "Hello, $UserName";
}else{
echo '
<html><body>
<form method="POST" action="test1.php">
Enter Your Name
<input type="text" name="Name"></input><br>
<input type="submit" name="submit"
value="click"></input>
</form>
</body></html>
';
}
?>
A simple example form, there is no value $submit after a POST. I eve tried making an app that just
echos $HOME and got nothing, so it seems I'm not importing any environment variables. Can
anybody point out a place to start looking for the problem?
Jason White