A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Problem posting variables from flash

  1. #1
    Senior Member
    Join Date
    Aug 2002
    Location
    Ireland
    Posts
    194

    Problem posting variables from flash

    I have the following script attached to a button with an input text (var=name) inside:

    on (keyPress "<Enter>") {
    loadVariablesNum("matrix.php", this, "POST");
    }


    The file 'matrix.php' contains the following script:

    <html>
    <head>
    <title>Welcome...</title>
    </head>
    <body>
    <?php
    print "Welcome <b>".$_POST['name']."</b>";
    ?>
    </body>
    </html>


    I have uploaded all the files (matrix.html, matrix.swf, matrix.php) to my webserver, but when I run matrix.html, fill in my name (lgs), and press enter, Ijust get a message saying 'Welcome', when it should say 'Welcome lgs'..
    How do I make it add the username to the end of the message?
    (I built a HTML form, and sent the variables to the matrix.php script and it worked.. How do I send the variables from Flash (MX 2004 Pro) using POST?)

    [I'm attaching my FLA file]
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Aug 2002
    Location
    Ireland
    Posts
    194
    got it fixed..
    it didn't work in opera but when i opened it in internet explorer it worked..

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