$score = intval($_POST['имя_поля']); if($score > 100 || $score < 0 ) { exit('Поле имеет недопустимую оценку'); }