A
Anonymous
Guest
Code:
$n_per_page = $_POST['n_per_page'];
$n_remove = $_POST['n_remove'];
$n_add = $_POST['n_add'];
$n_comments = $_POST['n_comments'];
$n_edit_all = $_POST['n_edit_all'];
$variables = array(
'$n_per_page',
'$n_remove',
'$n_add',
'$n_comments',
'$n_edit_all'
);
$changed_by = $_POST['changed_by'];
foreach($variables as $key => $value) {
if( $value >= 11 || $value >= 0 )
{
echo "<font color=\"red\">User level must be between 1 and 10</font><br>";
exit();
}
}