Getting vars from url into flash, then back into php
Hi all,
I'm having trouble understanding/implementing the use of vars in flash/php. I'm sucesfully loading dynamic text and jpegs from mysql using php. However, there's one piece that I can't figure out...any help is appreciated.
What I want to do is pass a var to a page that contains my movie, such as www.site.com/index.php?id=4 - No prob so far.:)
Then, I need my movie to pick up that var and pass it on to the script I'm using to load text from the db. Currently, my dyn text is coming from something like www.site.com/script.php - That script is looking for a var, but can't find it because flash hasn't sent it.
I thought at first that it would pick up the variable sent in the URL, but it doesn't, because the URL I'm using to my script doesn't contain the var. How do I do this? How can I get that var (id=4) into the php script that loads my text?
Here's the big pic if you want it. User comes to site, and uses an hmtl form to enter a code. That code ($id) is passed to the page that has the movie in it...and what I want it to do is serve up the text from the db record associated with the id used in the form. I'm missing something somewhere, and losing the var.
Thanks for any help you can give...hope this makes sense:o