Jump to content


Photo

help pulling info from url...


  • Please log in to reply
1 reply to this topic

#1 ichversuchte

ichversuchte
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 22 August 2006 - 01:36 PM

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

Say that the url is this:

http://www.forthestu...info.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

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 22 August 2006 - 01:46 PM

if (isset($_GET['lid'])) {
  $lid = $_GET['lid'];
}

echo $lid;





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users