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
Post a Comment