Page 1 of 1

How do i receive the data from url

Posted: Sun Jan 11, 2004 1:54 am
by Shendemiar
If if have a link like this

<a href="main.php?action=hall_of_fame">Hall of Fame</a>

Then how do get the action=hall_of_fame into my php variable?

Posted: Sun Jan 11, 2004 1:55 am
by Nay
In your main.php, do this:

Code: Select all

echo $_GET['action'];
:)

-Nay

Posted: Sun Jan 11, 2004 1:58 am
by Shendemiar
Thanks...