flash actionscript:
Good day all! Right I have a flash _mc which I'm using in a dreamweaver file. It has a form in it (as a _mc). And I'm using combo box's for people to make a selection. Enter the name, e-mail and hit send. And what I want is the information from the combo box's, name and e-mail sent to an address. I have the page live so I can test it. I fill in the form hit send, and I just get a blank e-maill:sad; Because I've used the combo box's there isn't a "var" field to fill in so I put the "variables" name in the "data" field. Is this right? And hear's the .php code. Hope someone can help! <?php $sendTo = "steven@birkenstockbeach.com"; $subject = "Custom Sven Clog Order Form"; $headers = "From: " . $_POST["name"]; $headers .= "<" . $_POST["email"] . ">\r\n"; $headers .= "Reply-To: " . $_POST["email"] . "\r\n"; $headers .= "Return-Path: " . $_POST["email"]; $message = $_POST["email"]; $message = $_POST["name"]; $message = $_POST["treadColor"]; $message = $_POST["baseColor"]; $message = $_POST["bendOrNon"]; $message = $_POST["heelSize"]; $message = $_POST["nubucColors"]; $message = $_POST["galaxyColors"]; $message = $_POST["suedeColors"]; $message = $_POST["patentColors"]; $message = $_POST["leatherColors"]; $message = $_POST["styles"]; mail($sendTo, $subject, $message, $headers); ?>
You should post your acitionscript. as well to show how you are sending the variables to php. However I am pretty sure you need to add a '.=' to all the $message othersiwse it won't concentina the $mesage.... like... $message = $_POST["email"]; $message .= $_POST["name"]; $message .= $_POST["treadColor"]; $message .= $_POST["baseColor"];
ok I'll give the '.=' thing a go. hear's the action script that I added to the send button. on (release) { form.loadVariables("email.php", "POST");
Don't see what you're looking for? Try a search.
|