Date: 12/30/00
- Next message: kalowsky <email protected>: "[PHP-DEV] PHP 4.0 Bug #6105 Updated: odbc_pconnect returns 'not a valid ODBC-Link resource'"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #7608 Updated: config error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: kalowsky <email protected>: "[PHP-DEV] PHP 4.0 Bug #6105 Updated: odbc_pconnect returns 'not a valid ODBC-Link resource'"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #7608 Updated: config error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

