all groups > flash data integration > december 2006 >
You're in the

flash data integration

group:

Sending Form Information to Server


Sending Form Information to Server CasmoeDesigns
12/20/2006 5:01:55 PM
flash data integration:
Excuse me everyone for my lack of knowledge.

I am in the process of creating a flash site for friend of mine. He wants to
be able to have a guest list for his events in DC. I have created form boxes
and have given them all "instance names". But I have absoultely NO clue how to
have the text entered by people trying to get on the guest list sent to my
server so we can all read it.

I have a book on Flash but it really doest explain how to do it at all. I'm
guessing I need to do some actionscript?

The instance names for the boxes are:

Name box --------> nameBox

Event box ---------> eventBox

Email box ---------> emailBox

Guest box ---------> guestBox

Submit Button ---------> submitBtn

The website can be viewed at http://www.thedebonairtouch.com/DebonairMain.html

Please, someone help!!! I am very lost! LOL
Re: Sending Form Information to Server cinemaguy
12/20/2006 9:03:16 PM
Yes some Actionscript and some PHP if that is your preference. I have written
an article for precisely this thing that you can find here:

http://explorinlauren.com/repository/flash/actionscript/sending-and-receiving-va
riables-from-php.html

If you have more questions let me know.
Re: Sending Form Information to Server CasmoeDesigns
12/20/2006 9:19:27 PM
ok I've read that. Where do I create the PHP file? In Dreamweaver?

Also where is the actionscript going? On the button?

Re: Sending Form Information to Server cinemaguy
12/20/2006 9:26:10 PM
Re: Sending Form Information to Server CasmoeDesigns
12/20/2006 9:32:29 PM
Re: Sending Form Information to Server CasmoeDesigns
12/20/2006 9:39:37 PM
This came up when I but the action script on the submit button.

**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 15: Statement must
appear within on/onClipEvent handler
var srLv:LoadVars = new LoadVars();

**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 17: Statement must
appear within on/onClipEvent handler
srLv.onLoad = function() {

**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 25: Statement must
appear within on/onClipEvent handler
srLv.flashCount = 1;

**Error** Scene=Scene 1, layer=Form_block, frame=88:Line 27: Statement must
appear within on/onClipEvent handler
srLv.sendAndLoad("sendandreceive.php", srLv, "POST");

Total ActionScript Errors: 4 Reported Errors: 4
Re: Sending Form Information to Server cinemaguy
12/20/2006 9:40:59 PM
Re: Sending Form Information to Server CasmoeDesigns
12/20/2006 9:44:27 PM
Oh, well I have no clue still then. I was hoping someone could actually help me with the code to send the form information to the server.

Re: Sending Form Information to Server cinemaguy
12/20/2006 10:19:33 PM
AddThis Social Bookmark Button