# Request: Simple way to pull label or data from combo box

**URL:** https://forum.kirupa.com/t/request-simple-way-to-pull-label-or-data-from-combo-box/175084
**Category:** flash
**Created:** [January 11, 2006, 4:42pm UTC](https://forum.kirupa.com/t/request-simple-way-to-pull-label-or-data-from-combo-box/175084 "2006-01-11T16:42:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![physikal](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@physikal](https://forum.kirupa.com/u/physikal)
#### Post date: [January 11, 2006, 4:42pm UTC](https://forum.kirupa.com/t/request-simple-way-to-pull-label-or-data-from-combo-box/175084/1 "2006-01-11T16:42:44Z")

</div>

Hi,

I have been searching all over for a way to get the data from a combo box, or the label, or anything.

I am using the ‘Flash Based Email Form using PHP’ located on this website. So, from that, how would I add a little combo box to that form, with about 5 options. Then have the email.php send off whatever was the selection in that combo box be sent in the email.

I tried adding the labels and data fields to the combo box then naming it something like cbName. Then reference the variable in the php like

```php
$leintype = $_POST["cbName"]

```

then later on for $message I put:

```php
$message = "
Name: $name
Type: $leintype ";

```

and so on. But that just did not seem to work.

Any help would be greatly appreciated.
