note 29947 deleted from control-structures.switch by victor
| From: | victor@php.net | Date: | Sun, 02 Mar 2003 11:25:53 +0000 |
| Subject: | note 29947 deleted from control-structures.switch by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-44729@lists.php.net to get a copy of this message | ||
Very secure, clean, and simplistic template navigation
<?php
switch ($_GET['id']) {
case '1': $inc = 'Include/page01.php';
break;
case '2': $inc = 'Include/page02.php';
break;
case '3': $inc = 'Include/page03.php';
break;
default: $inc = 'Include/page01.php'
break;
}
include ($inc);
?>