if ($a == "new") {
// load the form
}
if (is_numeric($a)) {
$database->eventHandler("this_event", $session->username, $a);
} // end if a == event_id
which is working fine as long as the variable $a is NOT numeric. When it IS a numeric value ($a = 5 i.e.) I get an Error 404… Any other value is being propagated, it’s just the numeric values causing the error.
As always, your help is appreciated!
The part in blue are the characters accepted for the a parameter. So any character, either lower case or upper case, and underscores. Indeed, that won’t match digits
Actually, Rémon is partially correct. The problem, however, is also in your script as $a is a character (whether that character is a digit or not is irrelevant). Make sure that INTVAL($a) is > 0 (the default if there are only letters) and that should solve that problem for you.