You probably want to use GET variables, for which you need to combine all the files into one, named change.php
. In this file you need the line $foo = $_GET["id"]
which will get the value of the variable "id" in the url change.php?id=1
.
if (isset($_GET["id"])) {
$foo = $_GET["id"];
//your code here
}else{
echo 'ERROR!!! No id in URL';
}
You can have several variables in the URL like this: change.php?id=1&a=bar&b=toofoo