You are here: PHP code not sending POST form variables « PHP Programming Language « IT news, forums, messages
PHP code not sending POST form variables

Posted by Taras_96 on 10/25/07 15:19

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:

<?php

var_dump($_POST);
?>
<form method="post">
<input type="text" name="first" />
<input type="submit" />
</form>
)

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация