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) Quote Link to comment 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 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.