| ★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/002372.html | Nouvelle recherche | Portail wanayoo |
|
|
DevShed Discussion Forums
![]() PHP
![]() setting a variable with the click of a link
|
| next newest topic | next oldest topic |
| Author | Topic: setting a variable with the click of a link |
|
ashoka Junior Member |
hi folks ! I am trying to figure out how to set a certain value for a variable as per which link has been clicked, i.e. I am seting up a couple of links to the same page (which is to be generated dynamically according to the value of the said variable), so i have to allocate values to the variable through the click of a link (I think I´m repeating myself).... any ideas ? regards from h-town |
|
Shiju Rajan Member |
Hi ashoka, I think you are looking for something like echo "<a href=/old?u=http%3A%2F%2Fwww.devshed.com%2FTalk%2FForums%2FForum5%2FHTML%2F%5C&y=1999"yourscript.php3?variable=1\">click here</a>\n"; You can retrive the variable value in your script page like.. if($variable=="1"){ I am not sure wether you are looking for above solution or not..
"The fear of the LORD is the beginning of knowledge..." [This message has been edited by Shiju Rajan (edited August 11, 2000).] |
|
ashoka Junior Member |
Hi Shiju, that´s exactly what I´ve been looking for... thanks a lot |
All times are MST (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1997-2000 ngenuity. All rights reserved.
Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.