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? 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] 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] 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
Archived
This topic is now archived and is closed to further replies.