Adblock breaks this site

Getting PHP too recognise a clicked link

Discussion in 'Web Programming' started by DarkSpark, Dec 17, 2008.

  1. DarkSpark

    DarkSpark Vic's Whore
    Retired Sectional Moderator

    Joined:
    Jan 17, 2006
    Posts:
    1,872
    Referrals:
    2
    Sythe Gold:
    106
    420 yolo swag blaze it fuck the popo legalize it anyone got some chips Why is there BACON in the SOAP!? Two Factor Authentication User
    Getting PHP too recognise a clicked link

    Well i am making a site for someone who wants minimal loading etc so what i am struggling with is i have an A - Z list, i want users too be able too just click a hyperlink and have the PHP i am using recognise that they selected that specific letter... the rest after that i can do myself...

    like if they click a my PHP will have say $userSelect which is the selected letter...
     
  2. war833

    war833 Member

    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0
    Getting PHP too recognise a clicked link

    You mean like..

    #page.html
    Code:
    <a href="index.php?letter=a">A</a>
    <a href="index.php?letter=b">B</a>
    <a href="index.php?letter=c">C</a>
    <a href="index.php?letter=d">D</a>
    #Index.php
    Code:
    <?php
    echo "You picked letter " . $_GET['letter'];
    if ($_GET['letter] == "a")
    {
          echo "you picked a";
    }
    ?>
    etc...

    Did you mean that?
     
< [Selling] RuneScape stat sig, goal sig, race sig scripts. | [PHP] Runescape Skill Bar >


 
 
Adblock breaks this site