07-25-2010, 08:19 PM
|
#8 (permalink)
|
|
The Visitor
Join Date: Oct 2007
Posts: 3
Thanks: 2
|
Hey
You've probably solved this by now, but anybody else looking for the solution, just thought I'd post what I'd do..
Code:
<?php
/*
Examples of how to access these pages:
Call pages by url.php?action=new
Call pages by url.php?action=edit
Call pages by url.php?action=delete
*/
$page = htmlentities(trim($_GET['action']), ENT_QUOTES);
switch($page){
// What shows by default if not ?action chosen
default:
// HTML or code in here to view...
break;
case "new":
// HTML or code in here to view...
break;
case "edit":
// HTML or code in here to view...
break;
case "delete":
// HTML or code in here to view...
break;
}
?>
|
|
|
|