Thread: php e-mail form
View Single Post
Old 05-08-2009, 01:22 PM   #5 (permalink)
ironlion27
 
Newb Techie

Join Date: May 2009

Posts: 8

ironlion27 is on a distinguished road

Default Re: php e-mail form

What should be in place of the ----'s? I tried as below but got the Parse error: syntax error for the line echo '<br />$message<br />';

<?php
$name = $_POST['Name'];
$email = $_POST['E-mail'];
$team = $_POST['Team'];
$service = $_POST['Service Type'];
$goal = $_POST['goal'];
$message = "Team: $team\n Service: $service \n Goal: $goal";
$header = "Name: $name E-mail: $email";

mail ( "ironlion27@gmail.com", "Quote Request", $message, $header)

echo '<br />$message<br />';
print_r($_POST);
echo '<br />$message<br />';

?>

p.s. this probably is a really silly mistake but I just can't figure this out. Thanks for your help.
ironlion27 is offline