-
Form Data - Help!
Thanks in advance for any help. I am using Flash MX (not 2004)
I admit, I have an Actionscript deficit, and I only use Flash occasionally, but I am in desperate need of instruction on how I would incorporate the following form into flash. The script lies on someone else's web site, so it cannot be changed.
How would I accomplish this? Any help is most appreciated. Thank you very much.
FORM name="MessageForm" method="post" action="http://www.example.com/adserver/campaignstudio/SendPromo.asp?PID=SCALL01"
INPUT type="Hidden" name="From" value="joe@example.net"
INPUT type="Hidden" name="CampaignID" value="SCWIRELESS"
INPUT type="Hidden" name="ErrorURL" value="http://www.example.net/err.htm"
Cell: <INPUT type="text" size=10 name="WN"
INPUT type="submit" name="submit" value="Send!"
/FORM
-
This way it will not work, because it like HTML not AS.
Try instead:
PHP Code:
dataSender = new LoadVars();
dataSender.From = _root.yourformname.fromfieldname.text;
dataSender.CampaignID = _root.yourformname.campaignidfieldname.text;
dataSender.ErrorURL = _root.yourformname.errorurlfieldname.text;
dataSender.WN = _root.yourformname.wnfieldname.text;
dataSender.sendAndLoad("http://www.example.com/adserver/campaignstudio/SendPromo.asp?PID=SCALL01",_root,"POST");
-
Still Very Confused
Sorry, I really need the "Dummies" version on this.
Should the Actionscript be attached to the submit button? In other words, where do I put all that Actionscript?
-
up to my .as in code
Search the board for "contact form" or similar. There are fully coded examples throughout.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|