A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Sending variables+getURL

  1. #1
    Ok so I have an asp file on say http://www.test1.com/clicky.asp

    and it has a form

    <FORM ACTION="clicky.asp" METHOD=POST>
    What is your e-mail address?
    <input type="text" size="15" maxlength="80" name="email"><BR>
    What is your web site address (optional)?
    <input type="text" size="15" maxlength="900" name="website"><BR>
    <input type="submit" value="Clicky" name="step"><P>
    </FORM>

    Now say I want to put a flash file on a client domain.. http://www.test5.com

    Is there a way I can use getURL (method=post)on the client site to goto http://www.test1.com/clicky.asp while sending the variables..

    Basically from the client site I want to send all html form variables from the flash file to the formAction page so the user can register without ever having to manual enter data..

    I want all hidden data sent too, possible?

    Thanks and sorry for my english.

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Posts
    217
    Easy, i use this method in my form:
    getURL ("www.site.com?formVariableName1="+flashVariableVa lue1+"&formVariableName2="+flashVariableValue2, "see footnote 1", "POST");

    Basically this is getting the url:

    http://www.site.com/form.asp?formVar...VariableValue2

    Footnotes
    1: put a target that spot, if you want it to go to a frame, put in the frames NAME, if you want it to open in a new IE window, put in "_blank", or if you want it in the same window put in "_self"
    2: ? tells the form to work.
    3: & tells it theres a new variable being sent.

    Semi-Working Example
    http://http;//Cache.digitalrenaissan...kF+"&hidden=1"

  3. #3
    I get that but here's what I don't get..

    I have a page (page.asp) with a form, if you fill in the form and click submit, it sends all info to itself (page.asp) and checks whether you clicked a button hidden info I guess?

    I want to goto the second version of (page.asp) from flash

  4. #4
    <FORM ACTION="clicky.asp" METHOD=POST>
    What is your e-mail address?
    <input type="text" size="15" maxlength="80" name="email"><BR>
    What is your web site address (optional)?
    <input type="text" size="15" maxlength="900" name="website"><BR>
    <input type="submit" value="Clicky" name="step"><P>
    </FORM>

    are there any variables in that bolded part I will need to send? tell me what they are and what their value will be.

  5. #5
    Senior Member
    Join Date
    Jun 2002
    Posts
    217
    Ok, your not making too much sense without giving out your code, from what i can tell you need to do this:

    http://www.test1.com/clicky.asp?emai...enaissance.org

    So:
    Code:
    <FORM ACTION="http://www.test1.com/clicky.asp" METHOD="get"><br>
    What is your e-mail address?
    <input type="text" size="15" maxlength="80" name="email"><br>
    What is your web site address (optional)? 
    <input type="text" size="15" maxlength="900" name="website"><br>
    <input type="submit" value="Clicky" name="step"><br>
    </FORM>
    Get puts the variables in line at the end of the form action. The method has to be in "quotes"

    And no the bold part is a button, you don't need to send that.

    Try and make more sense when you ask a question...i need to see what your doing.

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