note 30684 added to control-structures.switch

From: Date: Tue, 25 Mar 2003 17:15:54 +0000
Subject: note 30684 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-45807@lists.php.net to get a copy of this message
In response to [kriek at jonkriek dot com] suggestion for including pages: What about this one? <?php if (!ereg('^[0-9]+$', $_GET['go']) || !isset($_GET['go'])) $_GET['go'] = 1; $inc = 'Page'.str_pad($_GET['go'], 2 , '0', STR_PAD_LEFT).'.php'; include($inc); ?> -- http://www.php.net/manual/en/control-structures.switch.php http://master.php.net/manage/user-notes.php?action=edit+30684 http://master.php.net/manage/user-notes.php?action=delete+30684 http://master.php.net/manage/user-notes.php?action=reject+30684

« previous php.notes (#45807) next »