Thanks for replying! I did make the changes you suggested, unfortunately I was met with the following:
"Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in d:\inetpub\sites[url]www.jimdiodati.com\web\feedback.php[/url] on line 62"
This is the code that got that result (everything else stayed the same):
if(isset($POST['mycheckbox'])) {
$_boxtwine = "You checked the checkbox\n".
} else {
$__boxtwine = "You didn't check the checkbox\n".
}
(for the record, the underscores represent a tab yes?)
However, when I removed a few semi-colons as is done further down the code, I got this error...
"Parse error: parse error, unexpected '}' in d:\inetpub\sites[url]www.jimdiodati.com\web\feedback.php[/url] on line 62"
<?
$mailto = 'mike.paris@sympatico.ca' ;
$subject = "Feedback Form Test" ;
$formurl = "http://www.jimdiodati.com/feedbacktest.html" ;
$errorurl = "http://www.jimdiodati.com/error.html" ;
$thankyouurl = "http://www.jimdiodati.com/thankyou.html" ;
$name = $POST['name'] ;
$address = $POST['address'] ;
$city = $POST['city'] ;
$postal = $POST['postal'] ;
$phone = $POST['phone'] ;
$email = $POST['email'] ;
$comments = $_POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($comments)) {
header( "Location: $errorurl" );
exit ;
}
if(isset($_POST['mycheckbox'])) {
$boxtwine = "You checked the checkbox\n".
} else {
$boxtwine = "You didn't check the checkbox\n".
}
$messageproper =
"This message was sent from:\n" .
"$name\n" .
"$address\n" .
"$city\n" .
"$postal\n" .
"$email\n" .
"$phone\n" .
"$http_referrer\n" .
"$boxtwine\n" .
"------------------------- COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.01" );
header( "Location: $thankyouurl" );
exit ;
?>