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
https://forums.phpfreaks.com/topic/95605-help-_get-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.