分类 问题名称 热度 更新时间
AI问答为什么会有php? 0 2023-12-29
AI问答学不会php怎么办? 0 2023-12-29
AI问答centos rsync离线安装 20 2023-12-29
AI问答学不会php怎么办? 0 2023-12-27
AI问答<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{eyou:global name='web_title' /}_{eyou:global name='web_name' /}</title> <meta name="description" content="{eyou:global name='web_description' /}" /> <meta name="keywords" content="{eyou:global name='web_keywords' /}" /> <link href="{eyou:global name='web_ico' /}" rel="shortcut icon" type="image/x-icon" /> <link rel="stylesheet" media="all" href="/template/pc/skin/css/style.css" /> <script src="/template/pc/skin/js/jquery.min.js"></script> <style> .logo{ width: 150px; } .title{ } </style> </head> <body> {eyou:include file="header.htm" /} <div class="idx1_box"> <p class="title">融合金融调解案件查询</p> </div> <div class="idx1_box"> <input type="text" name="name" id="name" placeholder="姓名"/> </div> <div class="idx1_box"> <input type="text" name="sfzh" id="sfzh" placeholder="身份证号"/> </div> <div class="idx1_box"> <input type="text" name="tjm" id="tjm" placeholder="调解码"/> </div> <div class="idx1_box"> <input type="text" name="phone" id="phone" placeholder="手机号"/> </div> <div class="idx1_box_code"> <input type="text" name="phone_code" id="phone_code" placeholder="手机验证码"/> <button class="yzm_btn" type="button" onclick="sendCode()">获取验证码</button> </div> <div class="idx1_box"> <button class="cx_btn" type="submit" onclick="cx_Code()">查询</button> </div> </div> {eyou:include file="footer.htm" /} <script> //获取验证码请求 function sendCode() { //校检手机号是否为空 var phone = document.getElementById("phone").value; if (phone == "") { alert("请输入手机号"); return false; } //校检手机号是否正确 var reg = /^1[34578]d{9}$/; if (!reg.test(phone)) { alert("请输入正确的手机号"); return false; } //发送请求 var xhr = new XMLHttpRequest(); xhr.open("POST", "aliyun-dysms-php-sdk-lite/demo/sendSms.php", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function () { if (xhr.readyState == 4 && xhr.status == 200) { alert("验证码已发送,请注意查收!"); } }; xhr.send("phone=" + phone); } //查询请求 function cx_Code() { //校检手机号是否为空 var phone = document.getElementById("phone").value; if (phone == "") { alert("请输入手机号"); return false; } //校检手机号是否正确 var reg = /^1[34578]d{9}$/; if (!reg.test(phone)) { alert("请输入正确的手机号"); return false; } //点击查询 调用ajax校检手机及验证码 var phone_code = document.getElementById("phone_code").value; if (phone_code == "") { alert("请输入手机验证码"); return false; } var name = document.getElementById("name").value; var sfzh = document.getElementById("sfzh").value; if(sfzh.length !== 15 && sfzh.length !== 18) { alert("请输入正确的身份证号"); return false; } if(sfzh.length === 15 && !(/^d{15}$/.test(sfzh))) { alert("请输入正确的身份证号"); return false; } if(sfzh.length === 18) { var str1 = sfzh.subtring(0,17); var str2 = sfzh.subtring(17,1); var alpha = "X0123456789"; if(!(/^d{17}$/.test(str1)) || alpha.indexOf(str2) === -1) { alert("请输入正确的身份证号"); return false; } } var tjm = document.getElementById("tjm").value; if (tjm == "") { alert("请输入调解码"); return false; } //查询请求 var xhr = new XMLHttpRequest(); xhr.open("POST", "aliyun-dysms-php-sdk-lite/demo/CheckCode.php", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function () { if (xhr.readyState == 4 && xhr.status == 200) { var data = JSON.parse(xhr.responseText); if (data.code == 200) { alert(data.msg); } else { alert(data.msg); } } }; xhr.send("phone=" + phone + "&phone_code=" + phone_code ); //在新窗口打开查询页面 window.open("/index.php?m=home&c=Lists&a=index&tid=1&title="+name+"&sfzh="+sfzh+"&phone="+phone+"&tjm="+tjm+"&phone_code"+phone_code); } </script> </body> </html> 根据我给出的前端htm 0 2023-12-27
AI问答断断续续十几年了,咋感觉就没学会 0 2023-12-25
AI问答学不会php怎么办? 0 2023-12-25
AI问答学不会php怎么办? 、 0 2023-12-25
AI问答php 字符串类型 0 2023-12-25
AI问答php是什么? 0 2023-12-24
AI问答苹果CMS 怎么添加标签 0 2023-12-24
AI问答苹果CMS 解释下构架 0 2023-12-24
AI问答maccms 0 2023-12-24
AI问答php难吗? 40 2023-12-24
AI问答如何用eclipse、Navicat 15 for MySQL实现php和微信小程序的交互 0 2023-12-24
AI问答利用php,mysql实现基于微信小程序的校园洗浴中心系统,应该怎么做 0 2023-12-24
AI问答php怎么和微信小程序实现前后端交互 0 2023-12-24
AI问答php是什么? 0 2023-12-24
AI问答php难吗? 0 2023-12-23
AI问答为什么会有php? 0 2023-12-23
AI问答php常用函数有哪些 0 2023-12-23
AI问答学不会php怎么办? 0 2023-12-22
AI问答php难吗? 0 2023-12-22
AI问答为什么会有php? 0 2023-12-22
AI问答php是什么? 0 2023-12-22
AI问答为什么会有php? 0 2023-12-22
AI问答老师对孩子关心的话语 0 2023-12-22
AI问答关心孩子的话语 0 2023-12-22
AI问答php的发展方向是什么? 0 2023-12-22
AI问答师生沟通过程 0 2023-12-22
AI问答师生对话内容 0 2023-12-22
AI问答师生沟通内容 0 2023-12-22
AI问答与家长达成的教育共识 0 2023-12-22
AI问答家访结论 40 2023-12-22
AI问答学不会php怎么办? 0 2023-12-22
AI问答php难吗? 0 2023-12-22
AI问答php与javar学习哪个更开发语言更有优势 0 2023-12-22
AI问答php与javar占有率 0 2023-12-22
AI问答php与javar区别 0 2023-12-22
AI问答为什么会有php? 0 2023-12-22
AI问答php是什么? 0 2023-12-22
AI问答Expected type 'string'. Found 'void'. 0 2023-12-21
AI问答php 将字符串按照某个字符进行分割组成数组的函数 0 2023-12-21
AI问答Str::studly()是什么意思 0 2023-12-21
AI问答$model->replace($replace)->save($data);是什么意思 0 2023-12-21
AI问答$model = new static();是什么意思 0 2023-12-21
AI问答array_column函数的作用 0 2023-12-21
AI问答生成值为1到31的数组快捷函数 0 2023-12-21
AI问答请介绍一下自己 0 2023-12-21
AI问答如何判断一个值是否存在于指定的数组中、 0 2023-12-21
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号