Guest upirate Posted April 5, 2007 Share Posted April 5, 2007 So my URL is :http://www.somesite.com?id=2&test=3 What can I do to get just the 'id=2&test=3' part ? thanks Link to comment https://forums.phpfreaks.com/topic/45763-how-do-i-get-_get-variables-only/ Share on other sites More sharing options...
Wildbug Posted April 5, 2007 Share Posted April 5, 2007 Do you want to parse URLs, or just looking for variables passed to your script via a GET method? What's wrong with $_GET? Link to comment https://forums.phpfreaks.com/topic/45763-how-do-i-get-_get-variables-only/#findComment-222289 Share on other sites More sharing options...
kenrbnsn Posted April 5, 2007 Share Posted April 5, 2007 It is stored in $_SERVER["QUERY_STRING"] Ken Link to comment https://forums.phpfreaks.com/topic/45763-how-do-i-get-_get-variables-only/#findComment-222290 Share on other sites More sharing options...
only one Posted April 5, 2007 Share Posted April 5, 2007 $id=$_GET['id']; $test=$_GET['test']; Link to comment https://forums.phpfreaks.com/topic/45763-how-do-i-get-_get-variables-only/#findComment-222319 Share on other sites More sharing options...
Guest upirate Posted April 5, 2007 Share Posted April 5, 2007 thankyou Link to comment https://forums.phpfreaks.com/topic/45763-how-do-i-get-_get-variables-only/#findComment-222355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.