$access = $_POST['access']; if ($access < 1 || $access > 200) { $err = "Access level must be a number between 1 and 200"; } if ($err) { echo $err; }