Getting a value out of the URL

Hello,

If the URL is www.yourdomain.com?id=54, how do I get the value of id?

Thanks
ftbadolatoAsked:
Who is Participating?
 
andrivConnect With a Mentor Commented:
Just use the variable name:

print($id);

or by using globals

print($HTTP_GET_VARS['id']);
0
All Courses

From novice to tech pro — start learning today.