note 41583 deleted from language.operators.logical by nlopess
| From: | nlopess@php.net | Date: | Thu, 15 Apr 2004 16:58:53 +0000 |
| Subject: | note 41583 deleted from language.operators.logical by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68169@lists.php.net to get a copy of this message | ||
Note Submitter: danjr@lcdb.net
----
I was searching around i trying to figure out how to get php to check different fields.. The best
way i found to do it was
if ((!$username) || (!$password) || (!$firstname){
if (!$username){
echo " Please enter in your username<br/>";
}
if (!$password)
echo " You where missing your Password<br/>";
}
if (!$firstname){
echo "Your Firstname... I think you forgot it <br/>";
}
print " Please re-enter your information";
include "loginform.html";
exit();
}
Hope that helps out