# Components and Email Form Tutorial?

**URL:** <https://forum.kirupa.com/t/components-and-email-form-tutorial/203576>\
**Category:** flash\
**Created:** [October 12, 2006, 4:25am UTC](https://forum.kirupa.com/t/components-and-email-form-tutorial/203576 "2006-10-12T04:25:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilly](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gilly](https://forum.kirupa.com/u/gilly)\
**Post date:** [October 12, 2006, 4:25am UTC](https://forum.kirupa.com/t/components-and-email-form-tutorial/203576/1 "2006-10-12T04:25:12Z")

</div>

Hi,

After hours of searching and playing around with various tutorials, Im not having much luck, and am getting quite frustrated.

I have a simple form with a name input field, a dropdown combo box, and a main enquiry box with scrollbar. These are all components (I dont want to use a regular input box, as I want to keep the form looking consistent). Then I want this to email using a php file.

Are there any tutorials that explain how to do EXACTLY these things? All the tutes Ive seen so far seem to have some of these things, but not all.

Thanks

---

<div class="post-metadata">

**Author:** ![gilly](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gilly](https://forum.kirupa.com/u/gilly)\
**Post date:** [October 23, 2006, 4:07pm UTC](https://forum.kirupa.com/t/components-and-email-form-tutorial/203576/2 "2006-10-23T16:07:21Z")

</div>

still not having any luck.

If anyone wants to finish off the file I have started, it would be much appreciated:

[http://lumo.rezist.org/contact-stripped2.fla](http://lumo.rezist.org/contact-stripped2.fla)

---

<div class="post-metadata">

**Author:** ![citruscomputers](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@citruscomputers](https://forum.kirupa.com/u/citruscomputers)\
**Post date:** [October 23, 2006, 4:16pm UTC](https://forum.kirupa.com/t/components-and-email-form-tutorial/203576/3 "2006-10-23T16:16:35Z")

</div>

[http://www.kirupa.com/web/form\_mailer.htm](http://www.kirupa.com/web/form_mailer.htm)

is quite easy once you make a couple forms. If you are a web designer by trade you will soon realize just how many of these you have to create.

Im not sure is this is discussed in the tutorial but to pick up data from combo boxes use this method on your submit button,

```auto
var comboBoxName = comboQuantity.getSelectedItem().label;

```

your var will be the same as your php variable. comboQuantity represents the variable name given to the combo box.

---

<div class="post-metadata">

**Author:** ![citruscomputers](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@citruscomputers](https://forum.kirupa.com/u/citruscomputers)\
**Post date:** [October 23, 2006, 4:21pm UTC](https://forum.kirupa.com/t/components-and-email-form-tutorial/203576/4 "2006-10-23T16:21:04Z")

</div>

[http://www.kirupa.com/web/form\_mailer.htm](http://www.kirupa.com/web/form_mailer.htm)

is quite easy once you make a couple forms. If you are a web designer by trade you will soon realize just how many of these you have to create.

Im not sure is this is discussed in the tutorial but to pick up data from combo boxes use this method on your submit button,

```auto
var comboBoxName = comboQuantity.getSelectedItem().label;

```

your var will be the same as your php variable. comboQuantity represents the variable name given to the combo box.

---

<div class="post-metadata">

**Author:** ![iuliux](https://avatars.discourse-cdn.com/v4/letter/i/838e76/32.png) [@iuliux](https://forum.kirupa.com/u/iuliux)\
**Post date:** [October 23, 2006, 5:06pm UTC](https://forum.kirupa.com/t/components-and-email-form-tutorial/203576/5 "2006-10-23T17:06:17Z")

</div>

[http://www.swish-db.com/tutorials/view.php/tid/222](http://www.swish-db.com/tutorials/view.php/tid/222)  
you just have to modify in the php code  
$to = escapeshellcmd($to); with $\_POST[‘to’] = escapeshellcmd($\_POST[‘to’]); and so on to all variables

---

<div class="post-metadata">

**Author:** ![gilly](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gilly](https://forum.kirupa.com/u/gilly)\
**Post date:** [October 24, 2006, 12:28am UTC](https://forum.kirupa.com/t/components-and-email-form-tutorial/203576/6 "2006-10-24T00:28:23Z")

</div>

but that tutorial uses simple input text boxes. I need to use components, and only components! Ive made plenty of regular flash forms with php before, this is not what I need to know how to do.

It must be with components!
