header trouble

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tomE
Forum Newbie
Posts: 19
Joined: Tue Jul 12, 2005 7:26 am
Location: Liverpool

header trouble

Post 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
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

it's not your header, you're missing a ";" on the line before.
tomE
Forum Newbie
Posts: 19
Joined: Tue Jul 12, 2005 7:26 am
Location: Liverpool

Post by tomE »

Man you are a genius and i am a fool, with few spare dollars. How do i donate?
Dale
Forum Contributor
Posts: 466
Joined: Fri Jun 21, 2002 5:57 pm
Location: Atherstone, Warks

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

We don't help others for donations. 8). We do it for clingon honor.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Fridays are dinosaur talk days ;)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

timvw wrote:Fridays are dinosaur talk days ;)
oooh ooh ooh! can't wait to see timvw doing dino-talk.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Jcart wrote:What the hell is dino talk?
we'll find out tomorrow :D
Post Reply