note 41583 added to language.operators.logical

From: Date: Thu, 15 Apr 2004 14:59:43 +0000
Subject: note 41583 added to language.operators.logical
Groups: php.notes 
Request: Send a blank email to php-notes+get-68163@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/language.operators.logical.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41583 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41583&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41583&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68163) next »