Setting Flash MX 2004 Var. So PHP can read it?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
GlennCurtis
Forum Newbie
Posts: 2
Joined: Tue Aug 24, 2004 11:03 am

Setting Flash MX 2004 Var. So PHP can read it?

Post by GlennCurtis »

Hi Guys,


I have being trying for a while now but all the things i do DON'T work! I need to be able to set up an input txt flied inside a Flash MX 2004 file and set a verable and read it in a PHP file.

Now I know that the PHP file works, did a simple test and it can read a verables set in an HTML fiel ok, but any way a set it inside flash, it just dosen't work!!!

Please any help an one can give me will be very welcome, as at this point iam pulling my hair out....

Thanks, Glenn.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

send the variable via a url query from flash:

foo.com/your_script_file.php?your_variable_name=your_value

and inside the script: $_GET['your_variable_name'] is 'your_value'
GlennCurtis
Forum Newbie
Posts: 2
Joined: Tue Aug 24, 2004 11:03 am

Post by GlennCurtis »

Thanks mate,

But this didn't work, I try it again and again but no matter what i do this will only work if i give it a fixed value and not take the user input, that i need!

I just dont think that i have set the var name right inside flash but i have never had to do this before, so i just dont know!!

Please any one else have anything else that i could try?

Glenn.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply