Problems passing data via GET and POST

From: Date: Sat, 24 Mar 2001 22:05:59 +0000
Subject: Problems passing data via GET and POST
Groups: php.general 
Request: Send a blank email to php-general+get-45450@lists.php.net to get a copy of this message
Hello, I recently wrote a (yet another) mailing portal which takes a certain action based on the contents of a hidden form field (i.e. if state==deliver then deliver mail to the recipient). Although I am certain the code could be better etc. etc. it works fine. I tested it on a Linux box running Apache-1.3.17 and PHP-4.0.4pl1 (as a module). However, when I transferred the project to another Linux server running Apache-1.3.12 and PHP-4.0.0 (also running as a module), the mailing portal refused to function properly. I discovered that the code that controls what action is taken was not picking up on the form contents passed to it. For a brief example, I have a file named "compose.php" which contains a form that passes a hidden field called "state" with the value "compose" to a file called "control.php" using the POST method. "control.php" is supposed to pick up on the "state" and sends the content of the "compose.php" form to the deliver stage. Unfortunately, it appears that "control.php" is not seeing any of the form data from "compose.php". My question is this: is there a setting in PHP (set either at compile or in the php.ini) that controls whether or not a PHP script will accept data passed to it via POST or GET? I would appreciate any suggestions or ideas you may have. Thanks Matt -- Matt Adams (ICQ 109490925) Altair Electronics: <matt@altair.ca> Scouts Canada: <madams@rusty.scouts.ca> Personal: <stormkeeper@softhome.net>

« previous php.general (#45450) next »