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.
use the get method in the url. If you want to pass over a variable called ‘phone’ as 0001112222:
then on the next page (whatever.php) you can access this var via: