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 Link to comment https://forums.phpfreaks.com/topic/95605-help-_get-not-working/ 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"; Link to comment https://forums.phpfreaks.com/topic/95605-help-_get-not-working/#findComment-489440 Share on other sites More sharing options...
l0ve2hat3 Posted March 11, 2008 Share Posted March 11, 2008 use $_REQUEST instead of $_GET Link to comment https://forums.phpfreaks.com/topic/95605-help-_get-not-working/#findComment-489442 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. Link to comment https://forums.phpfreaks.com/topic/95605-help-_get-not-working/#findComment-489454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.