A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Form to post asp

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    10

    Please Help!
    I am trying to create a form in flash for people to subscribe to my emaillist. I got someone to create an .asp for me, I just have to implement the actionscripts on the button in flash to have it talk to it. Nothing is working (but i did get dynamic text to work). I don't know what I am doing (or doing wrong) can somebody help?! I'm using Flash 5.

    I've created an "editable text" and variable and a button: I just think I might have the script wrong.


    I've tried the Get Url (POST):
    on (release) {
    getURL ("http://66.242.133.142/jcb/addemail.asp ", "Email", "POST");
    }


    orLoadVariable:
    on (release) {
    if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
    Message = "Please enter a valid E-mail address";
    } else {
    loadVariablesNum ("http://66.242.133.142/jcb/addemail.asp", "Email", "POST");
    Message = "Thank you for subscribing!";
    }
    }

    Can you see what I am doing wrong?
    The text form variable is "Email"
    can anyone help?!

    please.....

  2. #2
    Junior Member
    Join Date
    Nov 2000
    Posts
    1

    GetURL and POST

    When you use getURL with the POST method you should be aware that Flash does not send the the info to the server script the as an HTML form page would. Flash uses a "hybrid" format. See http://www.virtual-fx.net/tutorials/...aservlets.html for details.

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