I want to know how to pass a variable from one page to another in PHP without any form.
What I want to achieve is this:
- The user clicks on a link
- A variable is passed which contains a string.
- The variable can be accessed on the other page so that I can run mysql queries using that variable.
<a href="page2.php?variable1=value1&foo=bar">Anchors</a>
is what you do then, accept techjunkie's answer, it's what you want.