why is the $_POST variable empty?

why is the $_POST variable empty?

am 25.10.2007 16:59:05 von Taras_96

Hi everyone,

I'm trying to get the code found at http://www.inventory-management.org/
up and running. So far I've created the database, edited the
configuration files to include the database information, renamed the
fputcsv function to f_put_csv. I'm trying to log into the page by
using the suggested user/pass of admin/test. However, I can see by
placing var_dump($_POST) at the top of index.php, that when I submit
the form no data is in the $_POST array?!

When the action is changed to GET, the appropriate variables appear in
the GET array?!

I thought it may have something to do with the configuration of the
web server, but creating a running a test PHP script that posts a
variable to itself shows that variables, from this script, are being
posted.

Does anyone have any ideas of what may be going wrong?

Thanks

Taras

Re: why is the $_POST variable empty?

am 25.10.2007 17:12:12 von dta

"Taras_96" wrote in message
news:1193324345.587379.128450@t8g2000prg.googlegroups.com...
> Hi everyone,
>
> I'm trying to get the code found at http://www.inventory-management.org/
> up and running. So far I've created the database, edited the
> configuration files to include the database information, renamed the
> fputcsv function to f_put_csv. I'm trying to log into the page by
> using the suggested user/pass of admin/test. However, I can see by
> placing var_dump($_POST) at the top of index.php, that when I submit
> the form no data is in the $_POST array?!
>
> When the action is changed to GET, the appropriate variables appear in
> the GET array?!

I hope you meant to say METHOD rather than ACTION.

If you changed the ACTION string, your problem is clear.

> I thought it may have something to do with the configuration of the
> web server, but creating a running a test PHP script that posts a
> variable to itself shows that variables, from this script, are being
> posted.
>
> Does anyone have any ideas of what may be going wrong?

--
David T. Ashley (dta@e3ft.com)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)

Re: why is the $_POST variable empty?

am 25.10.2007 20:48:08 von Taras_96

>
> I hope you meant to say METHOD rather than ACTION.
>
> If you changed the ACTION string, your problem is clear.
>
Yes, sorry, I meant METHOD :*)