Jump to content

Archived

This topic is now archived and is closed to further replies.

ichversuchte

help pulling info from url...

Recommended Posts

I need to pull a value from the url that is passed. 

Say that the url is this:

http://www.forthestudentsbooks.com/usersendinginfo.php?lid=26

I need to get the 26 from the url so that I can use it on the page im working with. 

What would the code look like to do this?

Thank you

Share this post


Link to post
Share on other sites
[code=php:0]
if (isset($_GET['lid'])) {
  $lid = $_GET['lid'];
}

echo $lid;
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.