# Using a listbox in a form mail

**URL:** <https://forum.kirupa.com/t/using-a-listbox-in-a-form-mail/139897>\
**Category:** Uncategorized\
**Created:** [March 6, 2005, 8:10pm UTC](https://forum.kirupa.com/t/using-a-listbox-in-a-form-mail/139897 "2005-03-06T20:10:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drexp2000](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@drexp2000](https://forum.kirupa.com/u/drexp2000)\
**Post date:** [March 6, 2005, 8:10pm UTC](https://forum.kirupa.com/t/using-a-listbox-in-a-form-mail/139897/1 "2005-03-06T20:10:11Z")

</div>

Ok, This is a partial of the code:

send\_bmc.onRelease = function() {  
response\_txt.text = ‘’;  
var ok = true;

```
_lv.name = name_txt.text;
_lv.subject = subject_txt.text;
_lv.message = message_txt.text;
if (ok) {
	response_txt.text = "Sending...";
	_lv.sendAndLoad("sendemail.php", _lv, "POST");
}

```

};

And I have this to load my vars:  
\_lv = new LoadVars();

For that example, I have text inputs labeled “name\_txt, subject\_txt, and message\_txt” and I have a button labeled “button\_bmc”

I hope it makes somewhat of a sense. Right now, the form does work and now I want to add a listbox. I want to able to call on whatever the selected items are in the listbox. Thanks in advance,

Andre
