ichversuchte Posted August 22, 2006 Share Posted August 22, 2006 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=26I 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 Quote Link to comment https://forums.phpfreaks.com/topic/18296-help-pulling-info-from-url/ Share on other sites More sharing options...
trq Posted August 22, 2006 Share Posted August 22, 2006 [code=php:0]if (isset($_GET['lid'])) { $lid = $_GET['lid'];}echo $lid;[/code] Quote Link to comment https://forums.phpfreaks.com/topic/18296-help-pulling-info-from-url/#findComment-78587 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.