Noob question about getting a PHP link in flash

Hi ppl,

I’m a complete NOOB when it comes to PHP so thats why I have this question:

I am working on a website that loads different PHP using links like:


I want a flash movie in that index.php page that checks the $section variable of the page so I can make some buttons with upstates (a button should be in the upstate when its on that specific page).

How can I do this with actionscript?

Thnx in advance.