Forum Moderators: coopster
when I use POST to get the data from a Form, I don't get the data on the other side and I don't know why. Could anyone help me with my problem? Thanks!
Here's an example of what I do:
//FORM.HTML
<form name="form1" method="post" action="test.php">
<input name="user" type="text" id="user">
<input type="submit" name="Submit" value="Submit">
</form>
//TEST.PHP
$user=$_POST['user'];
echo $user;
Yes I know it shouldnt matter and it sounds odd. But it did on a few scripts. That was the only thing I changed between tries and it fixed it.
[
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] POST
]
Why not try using $_REQUEST[user'] or the HTTP_GET as above? Or try putting both parts in one file for the test.