[clug] PHP5 - POST variables not being sent
Tarrant
tarrant at aeria-design.com
Sat Sep 30 07:05:13 GMT 2006
Just some really picky HTML stuff here that could, but probably isn't the
problem...
Method="POST" rather than method=POST
It seems strange that it would work on one server, but not the next. I'd say
check some log files perhaps?
-----Original Message-----
From: linux-bounces+tarrant=aeria-design.com at lists.samba.org
[mailto:linux-bounces+tarrant=aeria-design.com at lists.samba.org] On Behalf Of
Tim Murphy
Sent: Saturday, 30 September 2006 1:45 PM
To: CLUG
Subject: [clug] PHP5 - POST variables not being sent
Hi all,
I have recently moved a website to a new server, and now no $_POST
variables are being sent. I have set up a test script as follows:
<?PHP
echo "<HTML><BODY>";
echo "<pre>";
print_r($_POST);
echo "</pre>";
?>
<FORM method=POST action="<?PHP echo $_SERVER['PHP_SELF']; ?>">
<INPUT type="TEXT" name="1"><BR>
<INPUT type="TEXT" name="2"><BR>
<INPUT type="TEXT" name="3"><BR>
<INPUT type="TEXT" name="4"><BR>
<INPUT type="TEXT" name="5"><BR>
<INPUT type="SUBMIT" name="submit"><BR>
</FORM>
</BODY></HTML>
When I run the script from my computer, I get the output:
Array
(
[1] => var1
[2] => var2
[3] => var3
[4] => var4
[5] => var5
[submit] => Submit Query
)
However, when I run this from the new server, I always get
Array
(
)
Any ideas anyone? $_GET variables work fine, as do $_SESSION variables.
Thanks in advance
Tim
--
linux mailing list
linux at lists.samba.org
https://lists.samba.org/mailman/listinfo/linux
More information about the linux
mailing list