[PHP-DEV] PHP 4.0 Bug #8489: Function empty() does not work From: wangbo999 <email protected>
Date: 12/30/00

From: wangbo999 <email protected>
Operating system: Windows NT4.0(sp6)
PHP version: 4.0.4
PHP Bug Type: *Function Specific
Bug description: Function empty() does not work

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.

-- 
Edit Bug report at: http://bugs.php.net/?id=8489&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>