james909 Posted July 31, 2013 Share Posted July 31, 2013 My site currently uses one parameter in the URL like this: http://www.mydomain.com/folder/?paramname=AB32123 I would like to remove the parameter name, so the URL is: http://www.mydomain.com/folder/?AB32123 How would I then call use this parameter, currently I use $_GET['paramname'] but without a name I am unsure how I have tried: $_GET $_GET[] but they both through up errors? what is the correct way to get this paramter without a name Quote Link to comment https://forums.phpfreaks.com/topic/280692-one-url-parameter-without-a-name/ Share on other sites More sharing options...
Solution requinix Posted July 31, 2013 Solution Share Posted July 31, 2013 $_SERVER["QUERY_STRING"] If you look hard at $_GET you'll see it has $_GET["AB32123"] = "" but don't try to use that. Quote Link to comment https://forums.phpfreaks.com/topic/280692-one-url-parameter-without-a-name/#findComment-1442862 Share on other sites More sharing options...
james909 Posted July 31, 2013 Author Share Posted July 31, 2013 Thank you requinix Quote Link to comment https://forums.phpfreaks.com/topic/280692-one-url-parameter-without-a-name/#findComment-1442866 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.