ID: 14183 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Apache related Operating System: RedHat6.1 PHP Version: 4.0.4pl1 New Comment:
a value of zero evaluates as false you want to check if ( isset($pop) ) Previous Comments: ------------------------------------------------------------------------ [2001-11-22 15:22:37] [EMAIL PROTECTED] On RedHat7.1 Box with apache generate a HTML form. put a dropdown menu as form element. ie : <pre> <form name="test" action="bug.php" method="POST"> <select name="pop" > <option value="0">NO</option> <option value="1">NO</option> <input type="Submit" name="Submit_Button" value="Send Values"> </pre> bug.php <pre> <? if($pop){ echo "There isnt any bug"; } else { echo "Ops!"; } ?> </pre> If $pop=0 then engine cant read this value, and print "Ops!" I did try this on 3 servers that uses RedHat7.1 with PHP Version 4.0.3pl1. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14183&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]