# Forms with components

**URL:** https://forum.kirupa.com/t/forms-with-components/7000
**Category:** flash
**Created:** [October 21, 2002, 8:44pm UTC](https://forum.kirupa.com/t/forms-with-components/7000 "2002-10-21T20:44:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![TCB](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@TCB](https://forum.kirupa.com/u/TCB)
#### Post date: [October 21, 2002, 8:44pm UTC](https://forum.kirupa.com/t/forms-with-components/7000/1 "2002-10-21T20:44:58Z")

</div>

I did the Tutorial “Forms with Components” on this page. I was wondering, is it possible instead of printing the information on the screen when pressing the button you can have it send to you in an email when pressing the button.

thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 21, 2002, 9:38pm UTC](https://forum.kirupa.com/t/forms-with-components/7000/2 "2002-10-21T21:38:59Z")

</div>

Do you know how to send an email from Flash? If you do, well, it’s a piece of cake, and if you don’t, then search a bit on this forum, there are links to good tutorials.

Cheers.  
pom :cowboy:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 22, 2002, 4:08pm UTC](https://forum.kirupa.com/t/forms-with-components/7000/3 "2002-10-22T16:08:03Z")

</div>

Yes I do know how to send an email, I know it has something to do with that but I can’t figure it out. Maybe you can give me an example…I’m really stuck here.

thanks.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 22, 2002, 5:03pm UTC](https://forum.kirupa.com/t/forms-with-components/7000/4 "2002-10-22T17:03:09Z")

</div>

Well if you know how to send an email, I really don’t see where the problem is. With your usual form, you get the destination address, the subject and the content. And you send it to a PHP script, right? Well here it is exactly the same, except that you have to make the content yourself. And even that it already made in the tute (this is what is displayed in the textbox).

pom :cowboy:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 22, 2002, 7:20pm UTC](https://forum.kirupa.com/t/forms-with-components/7000/5 "2002-10-22T19:20:49Z")

</div>

TCB,

I just worked through this for a form I am working on.  
It consists of 9 pages, each page is a seperate movieClip  
Within each page I have several checkbox components w/ the following code attached to each one:

on (press){  
\_global.bcpageEightUtility = this.getValue();   
if (\_global.bcpageEightUtility = O) {  
\_global.bcpageEightUtility = null;  
} else {  
\_global.bcpageEightUtility = “Utility / Electrical room”;  
}  
}

I used the getValue() to return the on or off (0 or 1) of the button using the full path to the component instance name.  
Then on page 9 my submit button is on the main timeline and I use this script:

bcpageEightUtility = \_global.bcpageEightUtility  
getURL (“design\_questionnaire.php”, “”, “POST”);

Which sends the variable to my PHP script.

I am currently finishing up the form but you can see the functionality of it over at:  
[www.mxexhibits.com](http://www.mxexhibits.com)  
There is a “DQ” button in the top left corner.

Hope this helps!!
