# Form dropdown help, one dropdown works how do I code the other?

**URL:** <https://forum.kirupa.com/t/form-dropdown-help-one-dropdown-works-how-do-i-code-the-other/174187>\
**Category:** Uncategorized\
**Created:** [January 3, 2006, 4:33pm UTC](https://forum.kirupa.com/t/form-dropdown-help-one-dropdown-works-how-do-i-code-the-other/174187 "2006-01-03T16:33:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebus](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@sebus](https://forum.kirupa.com/u/sebus)\
**Post date:** [January 3, 2006, 4:33pm UTC](https://forum.kirupa.com/t/form-dropdown-help-one-dropdown-works-how-do-i-code-the-other/174187/1 "2006-01-03T16:33:32Z")

</div>

I have a form with 2 comboboxes. One mc is comboselect the other comboselect2. **My php code is:**

\<?php  
$sendTo = "myemail@email.com";  
$subject = “Contact Flash Form”;  
$headers = “From: $name\<$email\>  
Reply-To:$email”;  
$message = “1.Name:$name  
4.Email:$email  
5.Contact Address:$address  
6.Inquiry:$temp  
7.Comments:$comments”;  
mail($sendTo, $subject, $message, $headers, $category);  
?\>

**the flash AS on submit button is:**  
on (release) {  
trace(name+’  
‘+email+’  
‘+address+’  
‘+temp+’  
'+comments);  
}  
on (release) {  
loadVariablesNum(“contacts.php”, 0, “POST”);  
\_root.nextFrame();  
}

**the flash AS on one of the comboboxes is:**  
this.stop();  
myData = new Array(‘New York’, ‘Beverly Hills’, ‘Miami’, ‘other’);  
for (i=0; i\<myData.length; i++) {  
comboselect.addItem(myData\*, i);  
}  
function comboDisplay(component) {  
temp = component.getSelectedItem().label;  
}  
comboselect.setChangeHandler(“comboDisplay”);

\*\*2nd combobox AS:  
\*_this.stop();  
myData = new Array(‘10mil’, ‘50mil’, ‘100mil’);  
for (i=0; i\<myData.length; i++) {  
comboselect2.addItem(myData_, i);  
}  
function comboDisplay(component) {  
temp = component.getSelectedItem().label;  
}  
comboselect2.setChangeHandler(“comboDisplay”);

only info comes through is for the 2nd combobox - 10mil, 50mil, or 100mil  
what do I need to add to the PHP and AS to have the other combobox info be emailed ?
