Hi, I have a database and i only want to load the specific data that the user wants when they click on a link, so i need to have a variable sent to my php script to choose what table to show. So the link must set a variable.
I think it must go something like this: <a href="http://www.domain.com/db.php?$var1">
Does anyone know how to accomplish what i want?
Thanks
Search before you post.
add the vars to your url like so:
<a href="bla.com/script.php?var1=value1&var2=value2&var3=value3">
then in your script you can access the vars in $HTTP_GET_VARS;
echo $HTTP_GET_VARS['var1'];