在PHP里面进行判断,设置max值;如果大于max
1、直接提示超出范围;
2、
$max = 100;$id = $_GET['id']>$max ? $max : (int)$_GET['id'];