Php/flash passing variables back and forth


I have decided to take the leap into the world of php and find it a little frustrating. I got an input box from flash (with a submit button) to go to php and then be displayed back in flash. Thats all fine and dandy but what I’d really like to know how to do is have a button submit a variable (no input box) to php, then read that variable back in flash which affects an MC in flash. For example if you push a button the variable is home. If the variable is home then the btnHome is lit up. Which then I could have an html page with href=“myscript.php?page=home” or something which would also make the btnHome lit up. Does this make sense?