Bug #1008: variables from form input not available to functions

From: Date: Sun, 27 Dec 1998 05:21:08 +0000
Subject: Bug #1008: variables from form input not available to functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3055@lists.php.net to get a copy of this message
From: jake@underworld.net Operating system: Linux 2.0.35 PHP version: 3.0.5 PHP Bug Type: Misbehaving function Bug description: variables from form input not available to functions this seems to me like a bug that someone would have noticed before i, but never the less. (feel free to flame me if this is my error.) this is part of a script that handles form input from a file called timeclock.html: function printenv() { echo $employee, "<br>\n"; echo $passwd, "<br>\n"; echo $punchin, "<br>\n"; echo $punchout, "<br>\n"; echo $task, "<br>\n"; echo $task_other, "<br>\n"; } printenv{} it outputs this: <br> <br> <br> <br> <br> <br> i have reproduced this with simpler forms, and i am sure all variable names match. this works when run as: echo $employee, "<br>\n"; echo $passwd, "<br>\n"; echo $punchin, "<br>\n"; echo $punchout, "<br>\n"; echo $task, "<br>\n"; echo $task_other, "<br>\n"; eg, not from a function. if it helps any, $employee and $task are drop-down boxes, $passwd is a password field, $punchin and $punchout are radio buttons, and $task_other is plain text field. does it seem weird to anyone else that the Form Interperter portion of php/fi doesnt support functions? php is compiled with mysql as an apache module, with apache being compiled with mod_speling and mod_mime_magic. the form in question can be glimpsed at on cblood.tiac.net. (forgive speed, its a static ip but a 28.8 line.) -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3055) next »