Jump to content

[SOLVED] Parse error: parse error, unexpected T_LOGICAL


cluce

Recommended Posts

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]...

 

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)))

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.