PHP code not sending POST form variables

PHP code not sending POST form variables

am 25.10.2007 17:19:09 von Taras_96

Hi everyone,

I've downloaded the PHP code at http://www.inventory-management.org/
and am currently in the process of trying to get the code up and
running. I am running PHP version 5.1.6.6, so I needed to change the
function named fputcsv to f_put_csv.

However, when trying to login to the page (after setting up the
database), I find that the $_POST array is empty?! I found this by
putting the line var_dump($_POST) at the top of the index.php file.
When I change the method of the form to "get", the variables are sent
appropriately.

I read that the problem might be due to the server configuration, but
a simple script that echoes the contents of $_POST from a simple form
shows that variables can be posted:

(the test code is:


var_dump($_POST);
?>





)

What could possibly going wrong in the inventory management software?
The only thing I can think of is that a feature has been changed/
deprecated over time, leading to the management software not working.

Thanks

Taras

Re: PHP code not sending POST form variables

am 29.10.2007 20:58:09 von Rob D

the test code you include doesn't have an action attribute, which is
required, the code that isn't working does have an action set on the
form? and it does feature the scriptname in which you've included the
var_dump code doesn't it?

On 25 Oct 2007 08:19:09 -0700, Taras_96 wrote:

>Hi everyone,
>
>I've downloaded the PHP code at http://www.inventory-management.org/
>and am currently in the process of trying to get the code up and
>running. I am running PHP version 5.1.6.6, so I needed to change the
>function named fputcsv to f_put_csv.
>
>However, when trying to login to the page (after setting up the
>database), I find that the $_POST array is empty?! I found this by
>putting the line var_dump($_POST) at the top of the index.php file.
>When I change the method of the form to "get", the variables are sent
>appropriately.
>
>I read that the problem might be due to the server configuration, but
>a simple script that echoes the contents of $_POST from a simple form
>shows that variables can be posted:
>
>(the test code is:
>
> >
>var_dump($_POST);
>?>
>


>
>
>

>)
>
>What could possibly going wrong in the inventory management software?
>The only thing I can think of is that a feature has been changed/
>deprecated over time, leading to the management software not working.
>
>Thanks
>
>Taras