Page 1 of 1

catching the query string value in the same page

Posted: Tue Nov 11, 2008 10:37 pm
by krraleigh
I need to determine what values to query from a database.
I can do this by setting a query string on the link with my member status.

What I don't know how to do is capture that value and then store it in the same page so that I can retrive it.

myLink.php?memberid=1

How do I capture that value so that I can use in a database query?
Can you point me to a link?

Not sure how to search for this one.

Kevin :D

Re: catching the query string value in the same page

Posted: Tue Nov 11, 2008 11:09 pm
by infolock
that would be by calling the superglobal $_GET.

Example:

Code: Select all

 
echo $_GET['memberid'];
 

Re: catching the query string value in the same page

Posted: Wed Nov 12, 2008 1:26 am
by krraleigh
I appreciate your quick response.

Thank yOu
Kevin