A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Form Data - Help!

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    10

    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

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Location
    Rio de Janeiro, Brazil
    Posts
    344
    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"); 

  3. #3
    Junior Member
    Join Date
    Oct 2001
    Posts
    10

    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?

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center