|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-12-27 00:55 UTC] sas
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 19:00:01 2025 UTC |
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.)