Flash php mysql

I have posted this yesterday but i think I made the question far too complicated so I am going to re ask it in a simple manner

I have 3 files

first file is a php file which we will call “start”
second file is a flash file which we will call “middle”
and the third file is a php file called “end”

I need the start file to send 3 variables to the middle file. I then need the middle file to pass the three variables to the end file and then the end file will do some mysql and return a variable to the middle file

I can get it to work if I hardcode the variable values(championship, track and date)into the middle file i.e.

loadVariables(“http://localhost/motorcross-news/templates/textbox2.php?championship=Eastern Centre&track=Lyng&date1=14-10-2007”, this, “GET”)

but i want these variables to be passed fron the start file into the flash(middle) file and then passed to the end file

any help would be gratefully appreciated