ID: 21696 Comment by: jeff at powerupmobile dot com Reported By: ivanpisa at dfm dot ffclrp dot usp dot br Status: No Feedback Bug Type: *General Issues Operating System: Windows 2000 PHP Version: 4.3.0 New Comment:
Same problem with me: Solaris 10 PHP 5.2.5 Apache 2.2.8 Seems like a simple problem to me, PHP doesn't seem to recognise when a form checkbox is submitted with no value. I guess there are several ways to work around it but would be nice if it recognised it like it recognises and empty text field. Previous Comments: ------------------------------------------------------------------------ [2003-01-31 13:50:10] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-01-17 20:17:34] [EMAIL PROTECTED] If you're really using Apache2, consider moving to Apache 1.3.27 which actually works. ------------------------------------------------------------------------ [2003-01-17 09:10:07] [EMAIL PROTECTED] are you sure that your error_reporting settings are really the same on both boxes? (pleas check in phpinfo() output) the message you see is only produced if E_NOTICE reporting is enabled ... ------------------------------------------------------------------------ [2003-01-17 05:18:53] ivanpisa at dfm dot ffclrp dot usp dot br First, thanks for your attention. a) I'm running the same script in other machine, and it's passing NULL ("") string. I suppose the other machine, with the same configuration, should have the same behavior. b) Do I have to create the variable? Again, it's running in other machine with no problems. And all of my variables are created in the moment I need them. Did I miss something about PHP? c) I'll test. d) You are right, sorry, I mean register_globals is off e) I'll read. ------------------------------------------------------------------------ [2003-01-16 16:00:16] [EMAIL PROTECTED] Four things: a) Only checked checkboxes pass values. b) Why do you expect $a to exist at all? I see no code that creates $a. c) Have your test (form2.php) simply be: print_r($HTTP_POST_VARS); d) I believe you mean register_globals is off, there is no such thing as global_variables. e) http://www.php.net/variables.external ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21696 -- Edit this bug report at http://bugs.php.net/?id=21696&edit=1