header trouble
Posted: Thu Jul 21, 2005 11:18 am
Whats wrong with my header? Here is the code
And the error
Thanks guys
Code: Select all
<?
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$to="tommy_gun550@yahoo.co.uk";
$message="$name
has just filled in the Candilsel contact form. This is what they had to say:
\n$comments\n\nTheir e-mail address was: $email";
(mail($to,"Candilsel Form Submission",$message,"From: $email\n"))
header( "Location: http://localhost/contact_redirect.html" );
?>Code: Select all
Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\PHP\candisel.php on line 12