You can alter the variables...but I do the variable checking later in the script:
$prog_array = array("all", "1", 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
if (!in_array($prog, $prog_array)) {
$prog = "all";
}
if(!ctype_digit($i)) {
$i = 0;
}
if ($i > $total) {
$i = $total;
}elseif ($i < 0) {
$i = 0;
}
if (empty($i)) {
$i = 0;
}
The security code for the URL was merely meant to keep someone from typing in extra characters....or trying to figure out other variables...or whatever else someone might do.
-Brian