niche Posted April 16, 2010 Share Posted April 16, 2010 Please reply with the PHP Manual reference for the use of exclamation marks in this context: if((!$firstname) || (!$lastname) || (!$address1) || (!$state) || (!$city) || (!$zip) || (!$phone) || (!$email) || (!$password)){ $errorMsg = "You did not submit the following required information!<br /><br />";if((!$firstname) || (!$lastname) || (!$address1) || (!$state) || (!$city) || (!$zip) || (!$phone) || (!$email) || (!$password)){ $errorMsg = "You did not submit the following required information!<br /><br />";} Thanks Link to comment Share on other sites More sharing options...
Distortion Posted April 16, 2010 Share Posted April 16, 2010 The exclamation mark means NOT.So instead of checking wether it returns 1, it checks wether it returns 0. In this particular case it checks which variables do NOT exist. Link to comment Share on other sites More sharing options...
jeffman Posted April 16, 2010 Share Posted April 16, 2010 http://us2.php.net/manual/en/language.operators.logical.php Link to comment Share on other sites More sharing options...
niche Posted April 16, 2010 Author Share Posted April 16, 2010 Is there a PHP Manual reference? Link to comment Share on other sites More sharing options...
niche Posted April 16, 2010 Author Share Posted April 16, 2010 Thanks to Distortion and Deirdre's Dad!Niche Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.