note 29947 added to control-structures.switch

From: Date: Sat, 01 Mar 2003 20:59:46 +0000
Subject: note 29947 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-44708@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); ?> -- http://www.php.net/manual/en/control-structures.switch.php http://master.php.net/manage/user-notes.php?action=edit+29947 http://master.php.net/manage/user-notes.php?action=delete+29947 http://master.php.net/manage/user-notes.php?action=reject+29947

« previous php.notes (#44708) next »