yeah i guess you could do that though i would personally just go for
PHP Code:
// globalize variables
globalize($_REQUEST, array(
'perpage' => INT,
'pagenumber' => INT,
'g' => INT,
'p' => INT,
'do' => STR,
'var' => STR
'goto'
));
that way $var is arleady = $_REQUEST['var'] and has been checked to make sure it's either a string or int.
but in good coding practices you'd go
PHP Code:
$var = stripslashes($_REQUEST['var']);