Load variables and build a button link to a php page with get variable?

how to build a button link to a php page with get variable?

ok so i have a php script which writes the variables i need to a text file.

the textfile named pagefile.txt has the following.

var1=2
var2=0

(var 1 is the value for ‘next page’ and var2 is the value ofr ‘previous page’)

so heres what i want to do:

  1. load the variables var1 and var 2 into my flash file from the text file.

2)my flash file is basically just a button.
when the user releases the button i want the page to go to mysite.php?page=[var1 value]

so onrelease getURL mysite.php and append ?page=[the value for var1; in this case 2]

it seems so simple, yet i have no idea how to accomplish this…

please help!!

thanks!