ItsWesYo Posted March 10, 2008 Share Posted March 10, 2008 Right now, this is how my page is set up: monsters.php <?php include ("inc/header.php"); $page = ((isset($_REQUEST['name']))?($_REQUEST['name'])'')); switch($page) { case "monster1": { echo ( " monster one PAGE "); break; } default: { echo (" links to monster info page go here. <a href='?name=monster1'>monster one</a> "); break; } } include ("inc/footer.php"); ?> My question: Instead of "?name=monster1", I would like it to appear as "?monster1". Help? (Just wanna test some things) Link to comment https://forums.phpfreaks.com/topic/95483-_request/ Share on other sites More sharing options...
DarkerAngel Posted March 10, 2008 Share Posted March 10, 2008 you could try $_SERVER["QUERY_STRING"] which if your just using "page.php?moster1" $_SERVER["QUERY_STRING"] would return moster1 Link to comment https://forums.phpfreaks.com/topic/95483-_request/#findComment-488785 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.