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
tomE
Forum Newbie
Posts: 19 Joined: Tue Jul 12, 2005 7:26 am
Location: Liverpool
Post
by tomE » Thu Jul 21, 2005 11:18 am
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
Burrito
Spockulator
Posts: 4715 Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah
Post
by Burrito » Thu Jul 21, 2005 11:25 am
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 » Thu Jul 21, 2005 11:32 am
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 » Thu Jul 21, 2005 4:53 pm
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
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu Jul 21, 2005 4:56 pm
We don't help others for donations.
. We do it for clingon honor.
Burrito
Spockulator
Posts: 4715 Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah
Post
by Burrito » Thu Jul 21, 2005 4:58 pm
Jcart wrote: We don't help others for donations.
. We do it for clingon honor.
speak for yourself Mr Worf...I'm pwt and will take all the money I can get
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Thu Jul 21, 2005 8:12 pm
Fridays are dinosaur talk days
Burrito
Spockulator
Posts: 4715 Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah
Post
by Burrito » Thu Jul 21, 2005 8:19 pm
timvw wrote: Fridays are dinosaur talk days
oooh ooh ooh! can't wait to see timvw doing dino-talk.
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu Jul 21, 2005 8:42 pm
Since this thread has been solved I guess 1 more off topic post won't hurt.
What the hell is dino talk?
Burrito
Spockulator
Posts: 4715 Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah
Post
by Burrito » Thu Jul 21, 2005 9:35 pm
Jcart wrote: What the hell is dino talk?
we'll find out tomorrow