Jump to content

_Request


ItsWesYo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.