兄弟们,快来呀,手边没有电脑,还急用,兄弟们给我代码星吗

img

有帮助麻烦点个采纳【本回答右上角】,谢谢~~

img

img


<meta charset="utf-8">
<?php

if(isset($_GET["score"])){
  $score=$_GET["score"];
  if(!is_numeric($score))die('非法输入');
  $score=(int)$score;
  if($score>100||$score<0)die("你的分数已经超过了人类的范围了");
  if($score>=90)die("天才");
  if($score>=80)die("优秀");
  if($score>=70)die("良好");
  if($score>=60)die("及格");
  die("不及格");
}

?>
<script>
function score(f){
    if(!/^\d$/.test(f.score.value)){alert('成绩为数字!');f.score.select();return false;}
    
}
</script>
<form onsubmit="return check(this)">
请输入你的成绩:<input type="text" name="score"/><input type="submit" value="查询"/>
</form>

用户的等级通过弹窗的方式展示吗