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'; } Quote 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'; } Quote Link to comment https://forums.phpfreaks.com/topic/64000-mulitple-variables/#findComment-319008 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.