PHP 4.0 Bug #8489 Updated: Function empty() does not work

From: Date: Tue, 06 Mar 2001 11:53:27 +0000
Subject: PHP 4.0 Bug #8489 Updated: Function empty() does not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-48020@lists.php.net to get a copy of this message
ID: 8489 Updated by: stas Reported By: wangbo999@hotmail.com Old-Status: Feedback Status: Closed Bug Type: *Function Specific Assigned To: Comments: No feedback, closing. Previous Comments: --------------------------------------------------------------------------- [2001-01-08 13:52:53] stas@php.net What is your register_globals setting? if you insert var_dump($demo1) before if, what it prints? --------------------------------------------------------------------------- [2000-12-30 00:29:06] wangbo999@hotmail.com a Form is as follow: <form method="POST" action="accept_form.php"> <input name="demo1" type="text" value=""> <input type="submit" name="submit" value="go"> </form> In the server, accept_form.php is as follow: .... <script language="PHP"> if(empty($demo1) { echo "demo1 is empty"; } </script> .... Although I entered something is "demo1", empty() always returns true, and isset() works properly. what is the problem? thank you. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8489&edit=2

« previous php.dev (#48020) next »