[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

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
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:
            echo "<HTML><BODY>";
            echo "<pre>";
            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>
When I run the script from my computer, I get the output:
    [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
Any ideas anyone?  $_GET variables work fine, as do $_SESSION variables.
Thanks in advance
linux mailing list
linux at lists.samba.org

More information about the linux mailing list