lolflash whats up man i appreciate you helping me alot... im almost there i think .. just i dont think my php is retrieving the information ..if u would look over exactly what i have .. im about at the point of insanity w/ sometihng small...
butSubmit.onRelease = function() {
//You could do some checking of the forms here to make sure the relevent fields
//are filled
submitContact();
};
function submitContact() {
//define object to hold result
result_lv = new LoadVars();
//Define object to hold vars
cc_lv = new LoadVars();
//Attach vars to object
if(signs_check.selected) cc_lv.signsVar= signs_check.label;
cc_lv.ck_phone = phone_check.label;
cc_lv.ck_mail = mail_check.label;
cc_lv.ck_canvasing = canvasing_check.label;
cc_lv.ck_donation = donation_check.label;
cc_lv.ck_yardsign = yardsign_check.label;
cc_lv.ck_host = host_check.label;
cc_lv.name = name.text;
cc_lv.company = company.text;
cc_lv.phone = phone.text;
cc_lv.email = email.text;
cc_lv.comment = comment.text;
//Send vars to script
cc_lv.sendAndLoad(path2php + "form.php", result_lv, "POST");
result_lv.onLoad = function(success) {
if (success) {
//on the last line of the php script put
// echo "&retval=1&";
if (result_lv.retval.length > 0) {
gotoAndStop(8);
} else {
//incase of error trace what has been sent back
trace("ERROR:" + newline + unescape(result_lv));
}
}
};
}
<?php
$mail_check = "";
if(!empty($_POST['mailVar'] )$mail_check ="Mail: ".$_POST['mailVar']."\r\n";
$signs_check = $_POST['signs_check']
$phone_check = $_POST['phone_check']
$canvasing_check = $_POST['canvasing_check']
$donation_check = $_POST['donation_check']
$yardsign_check = $_POST['yardsign_check']
$host_check = $_POST['host_check']
$name = $_POST['name'];
$company = $_POST['company'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$comment = $_POST['comment'];
$to= "
[email protected]";
$subject = "Website Contact";
$msg .= "Name: $name\n\n";
$msg .= "Company: $company\n\n";
$msg .= "Phone: $phone\n\n";
$msg .= "Email: $email\n\n"
$msg .= "Comment: $comment\n\n".$signs_check .$phone_check.$canvasing_check .$mail_check
.$yardsign_check .$host_check .$donation_check
$headers .= "From: $name <$email>";
if(mail($to, $subject, $msg)) echo 'msg=Mail sent&to='.$to.'&subject='.$subject;
else echo 'msg= Mail faild, Please try again';
?>
SOMEONE SAVE ME!!!!!! SAVE ME I SAY!!!!!!!