Jump to content

[help] $_GET not working?


csj16

Recommended Posts

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 ;D

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.