JoakimN73
08-31-2005, 06:12 PM
Hi!
I have problems with getting the value out of a combobox in a Flash MX 2004/PHP mailform. I just get the e-mail message: info: undefined
The combobox is named info_combo. I wanted it to look like this: info = info_combo.value; but I can't get that to work out.
This is another way that I have tested, it results that a mail is sent, but the mail tells me that info is undefined. What string should I use to get the value out of the combobox?
on (release) {
info = _root.nature_of_inquiry_cb.comboBox.value;
if (name eq "" or message eq "" or info eq "" or telephone eq "" or email eq "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(2);
}
}
on (release) {
name = "";
message="";
telephone = "";
email="";
}
And here is how the PHP file looks like:
<?PHP
$to = "info@redpoint.se";
$msg .= "This message has been sent from your Contact Form\n\n";
$msg .= "name: " . $HTTP_POST_VARS["name"] . "\n";
$msg .= "message: " . $HTTP_POST_VARS["message"] . "\n";
$msg .= "info: " . $HTTP_POST_VARS["info"] . "\n";
$msg .= "telephone: " . $HTTP_POST_VARS["telephone"] . "\n";
$msg .= "email: " . $HTTP_POST_VARS["email"] . "\n";
$msg = utf8_decode($msg);
mail($to, $HTTP_POST_VARS["name"], $msg, "Contact Form\nReply-To:". $HTTP_POST_VARS["email"] . "\n");
?>
Please help me out! I just can't get it to work! :confused:
Best regards
Joakim
I have problems with getting the value out of a combobox in a Flash MX 2004/PHP mailform. I just get the e-mail message: info: undefined
The combobox is named info_combo. I wanted it to look like this: info = info_combo.value; but I can't get that to work out.
This is another way that I have tested, it results that a mail is sent, but the mail tells me that info is undefined. What string should I use to get the value out of the combobox?
on (release) {
info = _root.nature_of_inquiry_cb.comboBox.value;
if (name eq "" or message eq "" or info eq "" or telephone eq "" or email eq "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(2);
}
}
on (release) {
name = "";
message="";
telephone = "";
email="";
}
And here is how the PHP file looks like:
<?PHP
$to = "info@redpoint.se";
$msg .= "This message has been sent from your Contact Form\n\n";
$msg .= "name: " . $HTTP_POST_VARS["name"] . "\n";
$msg .= "message: " . $HTTP_POST_VARS["message"] . "\n";
$msg .= "info: " . $HTTP_POST_VARS["info"] . "\n";
$msg .= "telephone: " . $HTTP_POST_VARS["telephone"] . "\n";
$msg .= "email: " . $HTTP_POST_VARS["email"] . "\n";
$msg = utf8_decode($msg);
mail($to, $HTTP_POST_VARS["name"], $msg, "Contact Form\nReply-To:". $HTTP_POST_VARS["email"] . "\n");
?>
Please help me out! I just can't get it to work! :confused:
Best regards
Joakim