View Single Post
Old 07-25-2010, 08:19 PM   #8 (permalink)
EHJamie
The Visitor
 
Join Date: Oct 2007
Posts: 3
Thanks: 2
EHJamie is on a distinguished road
Default

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;
		
	}

?>
EHJamie is offline  
Reply With Quote