billt
06-01-2006, 05:05 AM
ok I am working with a type of feedback forms for my users to submit info to me and i can get it in my email box. problem is when i try this i get the following error.
Parse error: syntax error, unexpected T_VARIABLE in /home/.caty/overlordofevil/overlordofeviltest.nerowisconsin.com/newmember.php on line 19
I believe the problem is because i am trying to have multiple variables sent in the msg section of the email.
Here is a copy of the code I am using.
******************************************************
<?php
$Name = $_POST['Name'];
$address = $_POST['address'];
$cityandstate = $_POST['cityandstate'];
$zip = $_POST['zip'];
$phone = $_POST['phone'];
$dob = $_POST['dob'];
$Email = $_POST['Email'];
$advertisement = $_POST['advertisement'];
$other = $_POST['other'];
$username = $_POST['username'];
$password = $_POST['password'];
$to = "newmember@nerowisconsin.com";
$re = "New Member Sign Up";
$msg = "Name - "$Name\n"address - "$address\n"City and State - "$cityandstate\n"Zip Code - "$zip\n"Phone Number - "$phone\n"Date of Birth - "$dob\n"E-mail - "$Email\n"How did you hear - "$advertisement\n"Other source - "$other\n\n\n"Username - "$username\n"Password - "$password;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html;";
$headers .= " charset=iso-8859-1\r\n";
$headers .= "From: $Email \r\n";
$headers .= "Cc: $Email \r\n";
mail( $to, $re, $msg, $headers );
?>
******************************************************
Now what I would like to do is to take all the variables(fields) from my form and get them to send. Not sure how to do this and I am unsure if php can handle what I would like to do. I think i coded it correctly or I may be completely off so any hints or assistance that is offered would be appreciated.
Thanks
Bill
Parse error: syntax error, unexpected T_VARIABLE in /home/.caty/overlordofevil/overlordofeviltest.nerowisconsin.com/newmember.php on line 19
I believe the problem is because i am trying to have multiple variables sent in the msg section of the email.
Here is a copy of the code I am using.
******************************************************
<?php
$Name = $_POST['Name'];
$address = $_POST['address'];
$cityandstate = $_POST['cityandstate'];
$zip = $_POST['zip'];
$phone = $_POST['phone'];
$dob = $_POST['dob'];
$Email = $_POST['Email'];
$advertisement = $_POST['advertisement'];
$other = $_POST['other'];
$username = $_POST['username'];
$password = $_POST['password'];
$to = "newmember@nerowisconsin.com";
$re = "New Member Sign Up";
$msg = "Name - "$Name\n"address - "$address\n"City and State - "$cityandstate\n"Zip Code - "$zip\n"Phone Number - "$phone\n"Date of Birth - "$dob\n"E-mail - "$Email\n"How did you hear - "$advertisement\n"Other source - "$other\n\n\n"Username - "$username\n"Password - "$password;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html;";
$headers .= " charset=iso-8859-1\r\n";
$headers .= "From: $Email \r\n";
$headers .= "Cc: $Email \r\n";
mail( $to, $re, $msg, $headers );
?>
******************************************************
Now what I would like to do is to take all the variables(fields) from my form and get them to send. Not sure how to do this and I am unsure if php can handle what I would like to do. I think i coded it correctly or I may be completely off so any hints or assistance that is offered would be appreciated.
Thanks
Bill