note 30684 deleted from control-structures.switch by betz
| From: | betz@php.net | Date: | Sun, 19 Oct 2003 08:49:38 +0000 |
| Subject: | note 30684 deleted from control-structures.switch by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58879@lists.php.net to get a copy of this message | ||
Note Submitter: dharana@dharana.net
----
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);
?>