View Full Version : Forms with components
TCB
October 21st, 2002, 04:44 PM
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
pom
October 21st, 2002, 05:38 PM
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:
TCB
October 22nd, 2002, 12:08 PM
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.
pom
October 22nd, 2002, 01:03 PM
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:
Allen
October 22nd, 2002, 03:20 PM
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
There is a "DQ" button in the top left corner.
Hope this helps!!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.