Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i get my URL variable

Status
Not open for further replies.

Keendev

Technical User
Jan 23, 2006
106
PH
hi,just need help ... How do I get the value of my
url variable ?

ex.: site/index.php?page=create


thanks.
 
Code:
$_GET['page']
Your variable is in the $_GET superglobal, under an index of the name equal to your variable name. I suggest you use the syntax above every time you want to reference the variable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top