Page 1 of 1

header trouble

Posted: Thu Jul 21, 2005 11:18 am
by tomE
Whats wrong with my header? Here is the code

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" );
?>
And the error

Code: Select all

Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\PHP\candisel.php on line 12
Thanks guys

Posted: Thu Jul 21, 2005 11:25 am
by Burrito
it's not your header, you're missing a ";" on the line before.

Posted: Thu Jul 21, 2005 11:32 am
by tomE
Man you are a genius and i am a fool, with few spare dollars. How do i donate?

Posted: Thu Jul 21, 2005 4:53 pm
by Dale
tomE wrote:Man you are a genius and i am a fool, with few spare dollars. How do i donate?
Donate ... woah! You seem a generous man... i might start watching any problems you have in the future if you're giving out donations :p

Posted: Thu Jul 21, 2005 4:56 pm
by John Cartwright
We don't help others for donations. 8). We do it for clingon honor.

Posted: Thu Jul 21, 2005 4:58 pm
by Burrito
Jcart wrote:We don't help others for donations. 8). We do it for clingon honor.
speak for yourself Mr Worf...I'm pwt and will take all the money I can get :lol:

Posted: Thu Jul 21, 2005 8:12 pm
by timvw
Fridays are dinosaur talk days ;)

Posted: Thu Jul 21, 2005 8:19 pm
by Burrito
timvw wrote:Fridays are dinosaur talk days ;)
oooh ooh ooh! can't wait to see timvw doing dino-talk.

Posted: Thu Jul 21, 2005 8:42 pm
by John Cartwright
Since this thread has been solved I guess 1 more off topic post won't hurt.

What the hell is dino talk?

Posted: Thu Jul 21, 2005 9:35 pm
by Burrito
Jcart wrote:What the hell is dino talk?
we'll find out tomorrow :D