acidglitter Posted February 17, 2008 Share Posted February 17, 2008 Lets say theres an address like this: www.mysite.com/page.php?id=2 If you went to page.php, to get the id you would just go $_GET['id']; BUT what if I wanted to do something like this on another page called home.php: $url="www.mysite.com/page.php?id=2"; $id = $_GET['id'] from $url; So the home page could show that the id is 2 without actually going to page.php.. Does anyone know if something like this is possible and how to do it? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted February 17, 2008 Share Posted February 17, 2008 Look at the functions parse_url() and parse_str() Ken Quote Link to comment Share on other sites More sharing options...
acidglitter Posted February 17, 2008 Author Share Posted February 17, 2008 thats what i was looking for. thanks!! Quote Link to comment 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.