Retrieving Hyperlink parameter values in PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charlie-Boo

    Retrieving Hyperlink parameter values in PHP

    I have a PHP program that creates a page with several links all to the
    same URL but with different parameter values in the hyperlink e.g. <a
    href="FILENAME. php?VARIABLE=12 3">Click Here</a>. How do I retrieve
    the value of VARIABLE (=123) in file FILENAME.php?

    chvol@aol.com
  • L. 'Perfect' Gordon

    #2
    Re: Retrieving Hyperlink parameter values in PHP

    <?php
    value = $_GET['variable'];
    ?>

    I hope this answers the question that you've posted.

    --
    *************** *************** ******
    MUSIC24SEVEN
    Pioneers of the
    'Digital Entertainment Industry'

    *************** *************** ******
    "Charlie-Boo" <chvol@aol.co m> wrote in message
    news:3df1e59f.0 312051724.95663 f0@posting.goog le.com...[color=blue]
    > I have a PHP program that creates a page with several links all to the
    > same URL but with different parameter values in the hyperlink e.g. <a
    > href="FILENAME. php?VARIABLE=12 3">Click Here</a>. How do I retrieve
    > the value of VARIABLE (=123) in file FILENAME.php?
    >
    > chvol@aol.com[/color]


    Comment

    Working...