note 52759 added to function.isset

From: Date: Wed, 11 May 2005 23:44:00 +0000
Subject: note 52759 added to function.isset
Groups: php.notes 
Request: Send a blank email to php-notes+get-89288@lists.php.net to get a copy of this message
I don't know why the isset() function returns True when an EMPTY input text is passed thorugh a form. So, everytime I have to check if a textbox is not setted, I have to use the empty function instead of isset... For me, it would be better that it returns False if a input text is empty... But if i think it better, the problem seems to be in the management of the $_GET or $_POST array... it shouldn't create an index for an input type, if this is empty. That's my opinion. ---- Manual Page -- http://www.php.net/manual/en/function.isset.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52759 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52759&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52759&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52759&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52759&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52759&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52759&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89288) next »