Re: Not updating certain fields in same row

From: Date: Tue, 25 Mar 2008 18:59:38 +0000
Subject: Re: Not updating certain fields in same row
References: 1 2 3 4 5  Groups: php.db 
Request: Send a blank email to php-db+get-44786@lists.php.net to get a copy of this message
Correction:
Also, this condition: [quote] if (!isset($_POST['txtLoginName']) || empty($_POST['txtLoginName'])) [/quote] 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.


« previous php.db (#44786) next »