- 博客(2)
- 收藏
- 关注
原创 PHP输入日期判断上下中旬
表单部分 <form action="#" method="post"> 请输入月份: <input type="yf" name="yf"> 请输入日期: <input type="text" name="text"> <input type="submit" value="评定" name="sub"> </form> PHP部分 <?php if(isset($_POST['sub'])&&
2022-09-29 17:18:55
318
原创 PHP控制用户输入长度
表单控制 <form action="#" method="post"> 请输入长度为6~10之间的数字: <input type="text" name="text"> <input type="submit" value="检测" name="sub"> </form> <?php $num=$_POST["text"]; if($num!=""){ if(ctype_digit($num) and (str
2022-09-29 17:16:19
464
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人