Thread: else problem
View Single Post
Old 11-11-2008, 04:52 PM   #1 (permalink)
9three
The Contributor
 
Join Date: Oct 2008
Posts: 75
Thanks: 4
9three is on a distinguished road
Default else problem

Anyone detect the problem here?

PHP Code:
if ($name '' or $phone ='' or $email '' or $message ''){
    
header("Location: http://www.url.com/error.php");
} else { (
mail($recipient$subject$body$header))
      
header("Location: http://www.url.com/thanks.php");

I'm getting an error in the 2nd header...
9three is offline  
Reply With Quote