if statement - PHP form validation error T_String error -


what's wrong code i'm getting error unexpected t_string.. on line 7

if(!$query)  {     die("unable enter database"); } elseif      header("location:/peach mansions/confirm.php");  } else { echo 'a required field missing';  } 

?>

elseif      header("location:/peach mansions/confirm.php");  } 

should be

elseif (your_condition) {      header("location:/peach mansions/confirm.php");  } 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -