PDA

View Full Version : Email Form with Components



nikaotech
January 11th, 2005, 10:43 AM
Hi all - I have searched and seen similar issues, but not this exact problem, so any help would be greatly appreciated! This last bug is preventing us from going live...

I have a simple flash-to-php form mailer that collects information and sends it to an email address. All of the data that is collected from input text fields works great. However, there are 3 comboboxes that are used and NONE of them send data to the php email form.

In all 3 components, the parameters are as follows:
1) Editable = false
2) Labels = [data that I input in the properties box]
3) Data = []
4) Row Count = 8
Change Handler = empty
***Data & Change Handler are empty by default and I think that's where the issue lies, but I have experimented with both of them after much reading and I'm not seeing it. Please help! Thanks!

Rockstar
January 11th, 2005, 10:58 AM
make sure you use correct and same names both in flash and php.

nikaotech
January 11th, 2005, 11:37 AM
The combobox component names are as follows:
1) stateList
2) referenceList
3) times

The following is the php form mailer code:

<?php
//Declare the variables
$recipient = admin@nikaotech.com;
$subject = "New Member Registration";
$message = "We have added a new member to the FREE DINNER GIVE-AWAY! The following is their information:
Name: $name
Address: $address
City: $city
State: $stateList
Zip: $zip
Phone: $phone
Email: $email
Age: $age
Refered By: $referenceList
Times Out Monthly: $times
Comments: $comments";
//Contents of form
$name=$_POST['name'];
$address=$_POST['address'];
$city=$_POST['city'];
$state=$_POST['stateList'];
$zip=$_POST['zip'];
$phone=$_POST['phone'];
$email=$_POST['email'];
$age=$_POST['age'];
$times=$_POST['times'];
$reference=$_POST['referenceList'];
$comments=$_POST['comments'];
//mail() function sends the mail
mail($recipient,$subject,$message,$email);
?>

All of the form contents show up in the email except those three comboboxes. Do I have to use attachMovie or some other AS function to get the comboboxes to send the data contained within them?
Thanks!