PHP Help. Please help

Discussion in 'PHP' started by chathura87, Dec 8, 2008.

  1. #1
    Hi there,

    i have a problem in php.

    i create a script. Using that i get links and show them.

    example:

    link1 (under this i have put relevant url, using normal href . All the link1 have a same href link)
    link2

    (And i have an array it has unique corresponding values for each link)
    link1 has a unique value, 2 has a unique likewise

    now what i need is when i click link1 its corresponding value should be sent to that 2nd page.

    I have used session to make all variable global.

    Please help me

    Thank youuuuuuuuuuuuuuuu
     
    chathura87, Dec 8, 2008 IP
  2. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Post some code so we can help you
     
    atlantaazfinest, Dec 8, 2008 IP
  3. octalsystems

    octalsystems Well-Known Member

    Messages:
    352
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #3
    is something what u want expecting
    <?php

    $arr=array(
    array("link"=>"http://somesite1.com/somepage1.php","value"=>1),
    array("link"=>"http://somesite2.com/somepage2.php","value"=>2),
    array("link"=>"http://somesite.com3/somepage3.php","value"=>3));

    foreach($arr as $key=>$value)
    {

    echo("<a href='$value[link]?value=$value[value]'>$value[link]?value=$value[value]</a> <br/>");
    }


    ?>
     
    octalsystems, Dec 8, 2008 IP