★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/002372.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  setting a variable with the click of a link

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   setting a variable with the click of a link
ashoka
Junior Member
posted August 11, 2000 04:11 AM     Click Here to See the Profile for ashoka   Click Here to Email ashoka     Edit/Delete Message Reply w/Quote
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
posted August 11, 2000 05:01 AM     Click Here to See the Profile for Shiju Rajan   Click Here to Email Shiju Rajan     Edit/Delete Message Reply w/Quote
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"){
//some action here...
}

I am not sure wether you are looking for above solution or not..


------------------
SR -
webshiju.com

"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
posted August 11, 2000 05:31 AM     Click Here to See the Profile for ashoka   Click Here to Email ashoka     Edit/Delete Message Reply w/Quote
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

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.