#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    8
    Rep Power
    0
    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 Im repeating myself).... any ideas ?
    regards from h-town
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Hi ashoka,

    I think you are looking for something like

    echo "<a href="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).]
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    8
    Rep Power
    0
    Hi Shiju,
    thats exactly what Ive been looking for...
    thanks a lot

Similar Threads

  1. pass variable using link, instead of button
    By kenmaster in forum PHP Development
    Replies: 3
    Last Post: February 17th, 2004, 09:13 AM
  2. Replies: 0
    Last Post: February 10th, 2004, 04:43 PM
  3. PHP variable stylesheet setting ..
    By TRiley in forum PHP Development
    Replies: 8
    Last Post: February 8th, 2004, 02:22 PM
  4. No matter what link I click on, the same record shows up!!!
    By timsharpe in forum PHP Development
    Replies: 4
    Last Post: February 3rd, 2004, 09:08 PM
  5. session variable on text link
    By stojan in forum PHP Development
    Replies: 1
    Last Post: January 7th, 2004, 07:48 PM

IMN logo majestic logo threadwatch logo seochat tools logo