This is a discussion on "Desparately Need Form, Checkbox Component Help" within the Starting Out section. This forum, and the thread "Desparately Need Form, Checkbox Component Help are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Desparately Need Form, Checkbox Component Help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I have flash mx and I'm designing my contact page for my website to include a form. I am using 2 TextInput components for the name and email fields and 1 TextArea component for the comment field. I've also added a checkbox component for users to select if they would like to join my mailing list. This is where the problem lies. I can't get a result sent to my emailing informing me whether the user selected the checkbox component or not. How do I know if the user selected the "add me to your mailing list" checkbox component or not? Here's what
I've written this so far... var gatherForm:LoadVars = new LoadVars (); function sendForm() { gatherForm.email_to = "spycesoul@msn.com"; gatherForm.visitor_comment = contactForm.userComments.text; gatherForm.visitor_name = contactForm.userName.text; gatherForm.visitor_email = contactForm.userEmail.text; gatherForm.visitor_checkbox = contactForm.userCheckbox.text; (should the value not be .text for the checkbox field?) gatherForm.send("http://us.3.p4.webhosting.msn.com/forms?login=spycesoul", "_blank", "POST"); } |
|
|
![]() |
| Tags |
| checkbox, components, flash mx, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| form variable within an iframe component of a form | kissfreaque | PHP Forum | 3 | Feb 29th, 2008 13:06 |
| form variable within an iframe component of a form | kissfreaque | JavaScript Forum | 5 | Feb 29th, 2008 11:57 |
| CSS form checkbox alignment! | dhossai | Web Page Design | 4 | Nov 29th, 2007 18:00 |
| [SOLVED] Form Checkbox Validation | Stuart | PHP Forum | 26 | Nov 24th, 2007 23:39 |
| [SOLVED] Form to email with checkbox | itsdesign | PHP Forum | 4 | Oct 29th, 2007 00:57 |