csj16 Posted March 11, 2008 Share Posted March 11, 2008 I'm wondering if someone can help me. I have a flash document and I'm trying to get dynamic information from a PHP file into the flash file. Hope this makes sense Inside the flash document I have a text box (var: who) the AS I'm using is onClipEvent (load) { loadVariables("load.php", this, "GET"); } Inside the PHP file I'm using the following code to send the data to the flash file: <?php $user = $_GET['username']; $person = "Username: $user"; echo "who=$person&"; ?> This doesn't print anything!? But if I change the value of $user to 'something' and not $_GET then it works perfectly. Am I doing something wrong? I need to read the value of $_GET and send it to the flash document. I know that value isn't empty because if I view the page itself it shows up, its just not sending to flash. Have I done something wrong? I would really appreciate some help. ;D Quote Link to comment Share on other sites More sharing options...
trq Posted March 11, 2008 Share Posted March 11, 2008 I believe yuou will need to use... echo "?who=$person"; Quote Link to comment Share on other sites More sharing options...
l0ve2hat3 Posted March 11, 2008 Share Posted March 11, 2008 use $_REQUEST instead of $_GET Quote Link to comment Share on other sites More sharing options...
csj16 Posted March 11, 2008 Author Share Posted March 11, 2008 Unfortunately neither of these work! It seems like the rest of the variable is being printed into flash its just the actual $_GET value that isn't working. I'm so desperate to get this to work and I don't know whats wrong with it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.