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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
only one Posted April 5, 2007 Share Posted April 5, 2007 $id=$_GET['id']; $test=$_GET['test']; Quote Link to comment Share on other sites More sharing options...
Guest upirate Posted April 5, 2007 Share Posted April 5, 2007 thankyou 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.