Ok I have a form. You hit submit and it spits it back to you on a confirm page. You hit submit there and it is points you to the page with the following code that is supposed to email it to me.
<?
//Declare the variables
$recipient = "entries@mysite.com";
$subject = "Team Submission";
$message =
"$name
$teamname
$email
$tiebreaker
$team\";
//contents of form
$name = $_POST;
$teamname= $_POST;
$email = $_POST;
$email = $_POST;
$team = $_POST;
$headers = "Cc: $email\r\n;"
//mail() function sends the mail
mail($recipient,$subject,$message,$headers);
?>
I'm getting this error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/virtual/site30/fst/var/www/html/submitted.php on line 21
Line 21 is $name = $_POST;
Please help, I'm not THAT well versed in PHP but had this same damn form working last year and can't figure out where I'm putting or missing a ', ", or something else. :(