PHP 4.0 Bug #8489: Function empty() does not work
| From: | wangbo999 at hotmail dot com | Date: | Sat, 30 Dec 2000 05:29:06 +0000 |
| Subject: | PHP 4.0 Bug #8489: Function empty() does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42630@lists.php.net to get a copy of this message | ||
From: wangbo999@hotmail.com
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