cluce Posted June 19, 2007 Share Posted June 19, 2007 I have the foolowing error..... Parse error: parse error, unexpected T_LOGICAL_OR in /home/content/L/a/n/LangleyLee/html/application.php on line 20 I am trying to check for empty text fields with an if condition but I dont see whats wrong. here is my code if (is_null($lastname)) or (is_null($middle)) or (is_null($firstname)) or (is_null($address)) or (is_null($address_continue)) or (is_null($city)) or (is_null($state)) or(is_null($zip)) or (is_null($phone)) or (is_null($email)) or (is_null($position)){ $_SESSION['validate'] = "Some required fields are missing"; header ("Location: application.html"); }else{code]... Quote Link to comment https://forums.phpfreaks.com/topic/56222-solved-parse-error-parse-error-unexpected-t_logical/ Share on other sites More sharing options...
aniesh82 Posted June 19, 2007 Share Posted June 19, 2007 Could you please try this if : if ((is_null($lastname)) or (is_null($middle)) or (is_null($firstname)) or (is_null($address)) or (is_null($address_continue)) or (is_null($city)) or (is_null($state)) or(is_null($zip)) or (is_null($phone)) or (is_null($email)) or (is_null($position))) Quote Link to comment https://forums.phpfreaks.com/topic/56222-solved-parse-error-parse-error-unexpected-t_logical/#findComment-277685 Share on other sites More sharing options...
cluce Posted June 19, 2007 Author Share Posted June 19, 2007 yes, thanks I figured it out. Quote Link to comment https://forums.phpfreaks.com/topic/56222-solved-parse-error-parse-error-unexpected-t_logical/#findComment-277691 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.