ibeinboston Posted June 15, 2006 Share Posted June 15, 2006 I want my page to do something when I go toindex.php?mapbut I can only make it work by doingindex.php?map=yesby saying:[code]if(@$map == "yes"){ echo "whatever";}else{ ... whatever ...}[/code]Any help? Quote Link to comment https://forums.phpfreaks.com/topic/12073-help-with-url-string-query/ Share on other sites More sharing options...
.josh Posted June 15, 2006 Share Posted June 15, 2006 [code]if (isset($_GET['map'])) { echo "whatever";} else { ... whatever ...}[/code] Quote Link to comment https://forums.phpfreaks.com/topic/12073-help-with-url-string-query/#findComment-45937 Share on other sites More sharing options...
ibeinboston Posted June 15, 2006 Author Share Posted June 15, 2006 I just figured it out:[code]if(@$QUERY_STRING == "map")[/code] Quote Link to comment https://forums.phpfreaks.com/topic/12073-help-with-url-string-query/#findComment-45939 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.