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

**URL:** <https://forum.kirupa.com/t/load-variables-and-build-a-button-link-to-a-php-page-with-get-variable/172967>\
**Category:** Uncategorized\
**Created:** [December 19, 2005, 11:54pm UTC](https://forum.kirupa.com/t/load-variables-and-build-a-button-link-to-a-php-page-with-get-variable/172967 "2005-12-19T23:54:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoegaze](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shoegaze](https://forum.kirupa.com/u/shoegaze)\
**Post date:** [December 19, 2005, 11:54pm UTC](https://forum.kirupa.com/t/load-variables-and-build-a-button-link-to-a-php-page-with-get-variable/172967/1 "2005-12-19T23:54:03Z")

</div>

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!
