Also, this condition:


if (!isset($_POST['txtLoginName']) || empty($_POST['txtLoginName']))


is true if and only if no form element by the name txtLoginName existed on the previous page - and on top of that, empty() does the same as isset() and apart from that also checks whether, if the variable has been set, it has a value (0, "", NULL or FALSE) that evaluates to FALSE.

This condition is of course also true when the form element has existed but has no value.

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to