I have about 20 links on a page that I need to have a variable associated with it
Ie: if you click on the link
Code: Select all
<a href=USA.php>NEW YORK</A>Code: Select all
<a href=USA.php>Detroit</A>The way I imagine this would work is by something like this
Code: Select all
<a href=USA.php<?php[$USA=New York]?> New York </a>
<a href=USA.php<?php[$USA=Detroit]?> Detroit</a>Am I on the right track or is there a better way of doing this?
I would also like other things to change not just the name at the top but If i can figure out how to carry a different value for one of 20 or so links/variable across to one page I think I could work the rest out.
Cheers in advance