PDA

View Full Version : Form is frustrating me



cmwatts67
06-16-2006, 04:33 PM
Could some one tell me what is wrong with my contact us form ?

Parse error: syntax error, unexpected '@' in /home2/chrisvw/public_html/contact_us.php on line 3



<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = softwareeditorial@googlemail.com;
$mailsubj = "Software Enquiry";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form: or whatever else you want \n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location:http://www.softwareeditorial.com/contact_us.php");

cmwatts67
06-16-2006, 05:10 PM
Sorted it out,

Im feeling a bit tired my wife has just has a baby girl.

Andy128
06-16-2006, 05:14 PM
Problem is you deleted the " ".

Try- "softwareeditorial@googlemail.com";

Cheers,

Andy

Andy128
06-16-2006, 05:15 PM
Well congrats!!

Didn't see that you had sorted it out yourself. Glad all is well.

Get some sleep.

Andy