Hi
I'm a Newbie looking for ideas: I'm generating a list of clients in a loop and displaying them as a link. I want to open the new page and pass it a Client ID so I can run a new query to display more info. But How?
Idea needed: How to pass a value to a page with a click?
Moderator: General Moderators
It's called a Query String and you add it to your link in this fashion:
Then you get the value like this:
Code: Select all
<a href="e;somepage.php?someval=1234"e;>link</a>Code: Select all
echo $_GET['someval']; //outputs 1234