Crew-Portal Posted August 9, 2007 Share Posted August 9, 2007 how do I assign an if statement to multiple varibles? Like if I want it so that if a member tries to login without giving a name or password i want it to display a error but how do i do it is it like: if ($passwd || $usernm == NULL){ $error = 'You Did Not Enter A username Or Password'; } Link to comment https://forums.phpfreaks.com/topic/64000-mulitple-variables/ Share on other sites More sharing options...
teng84 Posted August 9, 2007 Share Posted August 9, 2007 if (empty($passwd) || empty($usernm )){ $error = 'You Did Not Enter A username Or Password'; } Link to comment https://forums.phpfreaks.com/topic/64000-mulitple-variables/#findComment-319008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.