Getting PHP too recognise a clicked link

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

Getting PHP too recognise a clicked link
  1. Unread #1 - Dec 17, 2008 at 6:21 PM
  2. DarkSpark
    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

    DarkSpark Vic's Whore
    Retired Sectional Moderator

    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...
     
  3. Unread #2 - Dec 17, 2008 at 6:35 PM
  4. war833
    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0

    war833 Member

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site