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? Link to comment https://forums.phpfreaks.com/topic/91468-solved-_get/ 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 Link to comment https://forums.phpfreaks.com/topic/91468-solved-_get/#findComment-468578 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!! Link to comment https://forums.phpfreaks.com/topic/91468-solved-_get/#findComment-468579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.