[AS2] Contact Form in Flash 6 w Combo Boxes
Hi there, I have been trying to nut this out using various threads but cant seem to find the right answer? Just trying to do a simple contact form with some combo boxes, have labelled all the comboboxes and set the text boxes to input and labelled them etc. Getting various error messages, heres my script:
on (release) {
if (birthdatecombobox eq "" or birthmonthconmbobox eq "" or firstname eq "" or surname eq "" or postaladdress eq "" or suburb eq "" or statecombobox eq "" or postcode eq "" or mobile eq "" or email eq "") {
stop();
} else {
form.somevar = form.birthdatecombo.getValue();
form.somevar = form.birthmonthcombo.getValue();
form.somevar = form.statecombo.getValue();
loadVariablesNum("emaillapform.php", 0, "POST");
gotoAndStop (2);
}
}
Heres my PHP called emaillapform.php:
<?php
$to = "insertemailaddresshere.com.au";
$subject = "Birthday Club Form";
$message = "$birthdatecombo\n\n";
$message = "Combo Choice " . $_POST["somevar"] . "\r\n";
$message = "$birthmonthcombo\n\n";
$message = "Combo Choice " . $_POST["somevar"] . "\r\n";
$message = "$firstname\n\n";
$message = "$surname\n\n";
$message = "$postaladdress\n\n";
$message = "$suburb\n\n";
$message = "$statecombo\n\n";
$message = "Combo Choice " . $_POST["somevar"] . "\r\n";
$message = "$postcode\n\n";
$message = "$mobile\n\n";
$message = "$email\n\n";
mail($to, $subject, $msg, "From: My web site\nReply-To: $email\n");
?>
Can anybody tell me where i am going wrong, its drivinng me nuts....
Any help will be greatly appreciated, cheers
|