第四步就是check.php实现文件
分类:热门新闻

ajax验证作品作者以前写过超多啊,下边小编再来写四个ajax检查客户名的学科吧,全尊敬上来.

作者:www.111cn.net

此地是html表今世码

本学科由本站原创,转发请注脚来处

此处是分界面效果图片,我们重要有多个篇章一个reg.php里面差十分少是html 代码,三个是register.php注册文件,二个是不是chech.js文件,还可能有最终二个ajax_check.php文件,要瓜熟蒂落此次ajax 顾客检查测量试验就要接纳上面多个篇章下边大家就先来探望分界面代码吧.

上面废话就非常少说了,我们来建设布局文章reg.php代码如下[测量检验页面]

本站原创:

邮箱:drise@163.com

css 与js代码.导入

<table width="100%" border="0" cellspacing="0">
                        <form name="form1" id="form1" method="post" action="/boke/blog/check.php">
                          <tr>
                            <td height="28" colspan="5"><div id="reglist">让您不再为写博客而写博客,大家让您写的篇章产生你想要的事物!</div></td>
                          </tr>
                          <tr>
                            <td height="43" colspan="3" align="left" valign="bottom"> <img src="/boke/blog/Pic/st-0136.gif" width="16" height="16" /><span class="style6">[注:带<span class="style1">*</span>号的为必需填项]</span> </td>
                            <td width="323"> </td>
                            <td width="248"> </td>
                          </tr>
                          <tr class="tb">
                            <td width="108" height="40" align="right" class="tb">用户名(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td colspan="2" align="left" class="tb"><input name="xm" type="text" id="xm" size="15" onblur="ajax();" />
                            </td>
                            <td width="323" class="tb"  ><div id="divxm">
                                <div id="bothlist">请填入您的帐号!</div>
                            </div></td>
                            <td width="248" class="tb"  > </td>
                          </tr>
                          <tr class="tb">
                            <td width="108" height="40" align="right" class="tb">性别(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td colspan="2" align="left" class="tb"><select name="sex" id="sex">
                                <option value="1">男</option>
                                <option value="0">女</option>
                            </select></td>
                            <td width="323" class="tb" ><div id="bothlist">请接收你的性别!</div></td>
                            <td width="248" class="tb" > </td>
                          </tr>
威尼斯登录首页,                          <tr>
                            <td width="108" height="40" align="right">顾客密码(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td colspan="2" align="left"><input name="rpwd" type="password" id="rpwd" size="15"  onblur="checkuser();" /></td>
                            <td width="323" rowspan="2" id="divpwd" ><div id="bothlist">请填入您的密码,长度在6-十二个人以内!</div></td>
                            <td width="248" rowspan="2" id="divpwd" > </td>
                          </tr>
                          <tr>
                            <td width="108" height="40" align="right">再输入一遍密码(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td colspan="2" align="left"><input name="rpwd1" type="password" id="rpwd1" size="15" onblur="checkuser();" /></td>
                          </tr>
                          <tr class="tb">
                            <td width="108" height="40" align="right" class="tb">密码提示难题(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td colspan="2" align="left" class="tb"><select name="safe" id="safe">
                                <option value="笔者最赏识的动物是怎么着?">笔者最欢悦的动物是什么样?</option>
                                <option value="作者高级中学学园叫什么名字?">我高级中学学校叫什么名字?</option>
                                <option value="作者女对象的名字叫什么?">笔者女对象的名字叫什么?</option>
                                <option value="笔者最爱怜的人是哪个人?">作者最赏识的人是何人?</option>
                            </select></td>
                            <td width="323" class="tb"> </td>
                            <td width="248" class="tb"> </td>
                          </tr>
                          <tr>
                            <td width="108" height="40" align="right">提醒难点答案(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td colspan="2" align="left"><input name="safean" type="text" id="safean" size="15"  onblur="checkuser();" /></td>
                            <td width="323" id="divda" ><div id="bothlist">请填入您的答案,找回密码必要确认.比如:小编叫张三!</div></td>
                            <td width="248" id="divda" > </td>
                          </tr>
                          <tr class="tb">
                            <td width="108" height="40" align="right" class="tb">您的电子邮箱(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td colspan="2" align="left" class="tb"><input name="email" type="text" id="email" size="15" onblur="checkuser();" /></td>
                            <td width="323" class="tb" id="divemail"><div id="bothlist">请正确填写您的邮箱地址!</div></td>
                            <td width="248" class="tb" id="divemail"> </td>
                          </tr>
                          <tr>
                            <td width="108" height="40" align="right">验证码(<span class="style3"><span class="style1">*</span></span>):</td>
                            <td width="79" align="left"><input name="rver" type="text" id="rver" size="7"  onblur="checkuser();" /></td>
                            <td width="122" align="left"><img src="/boke/blog/inc/verlog.php" onclick="this.src='/boke/blog/inc/verlog.php';" /><span class="read">点击图片刷新</span></td>
                            <td width="323" id="divyz"><div id="bothlist">请按侧边的图输入验证码,如不清楚可点击图片刷新验证码!</div></td>
                            <td width="248" id="divyz"> </td>
                          </tr>
                          <tr align="left">
                            <td width="108" height="40" class="tb"> </td>
                            <td height="40" colspan="4" class="tb"><input name="cbox" type="checkbox" id="cbox" value="1" checked="checked" />
                                <span class="phperblog_photo style4"><a href="#" class="name"><<作者同意本站服务条款>></a></span></td>
                          </tr>
                          <tr>
                            <td width="108" height="40"> </td>
                            <td height="40" colspan="2" align="left"><input name="imageField" type="image" src="/boke/blog/Pic/an0159.gif" width="149" height="27" onclick=" return checkuser();" border="0" /></td>
                            <td width="323" height="40" align="left"> </td>
                            <td width="248" align="left"> </td>
                          </tr>
                                           <tr>
                            <td width="108" height="28"> </td>
                            <td height="28" colspan="2"> </td>
                            <td width="323" height="28"> </td>
                            <td width="248"> </td>
                          </tr>
                        </form>
          </table>

style type=text/css!--body,td,th {font-size: 12px;}#error{color:#FF0000; background-image:url(images/1.jpg); height:26px; padding-top:10px;padding-left:50px;width:277px;}.defult{color:#333333; background-image:url(images/3.jpg); height:26px; padding-top:10px;padding-left:50px;width:277px;}#success{background-image:url(images/0.jpg) ;background-repeat:no-repeat;height:26px;}.input{height:18px; width:221px;}.STYLE1 {color: #FF0000}.black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=50); } .white_content {display: none;position: absolute;top: 25%;left: 25%;width: 50%;height: 50%;border:1px solid #000000;background-color: white;z-index:1002;overflow: auto;padding: 5px;}.close{height:15px; text-align:right; margin-bottom:10px;}a {font-size: 12px;color: #000000;}a:visited {color: #000000;}a:active {color: #000000;}--/stylescript language=javascript src=js/check.js/script

第二步正是写js文件

table width=800 border=0 align=center cellpadding=0 cellspacing=0form id=form1 name=form1 method=post action=register.php tr td width=137nbsp;/td td width=17 height=27nbsp;/td td width=229nbsp;/td td width=417nbsp;/td /tr tr td align=right昵nbsp;nbsp;称:/td td height=34 align=centerspan class=STYLE1*/span/td tdinput name=uid type=text class=input id=uid onblur=return ajax(); onfocus=return c();size=20 //td td align=left id=u_infodiv class=defult顾客别名长度3-十二个字符/div/td /tr tr td align=right性nbsp;nbsp;别:/td td height=34 align=centerspan class=STYLE1*/span/td td label/label label select name=sex id=sex option value=1男/option option value=0女/option /select /label/td td align=leftnbsp;/td /tr tr td align=right密nbsp;nbsp;码:/td td height=34 align=centerspan class=STYLE1*/span/td tdinput name=password2 type=password class=input id=password2 onblur=c(); size=20 //td td align=left id=p_infodiv class=defult长度6-17人/div/td /tr tr td align=right确认密码:/td td height=34 align=centerspan class=STYLE1*/span/td tdinput name=password type=password class=input id=password onblur=c(); size=20 //td td align=left id=p_info1div class=defult确认密码/div/td /tr tr td align=right手nbsp;nbsp;机:/td td height=34 align=centerspan class=STYLE1*/span/td tdinput name=mo type=text class=input id=mo onblur=c(); size=20 //td td align=left id=m_infodiv class=defult手提式有线电话机13875888888与座机/div/td /tr tr td align=right真实姓名:/td td height=34 align=centerspan class=STYLE1*/span/td tdinput name=name type=text class=input id=name onblur=c(); size=20 //td td align=left id=n_infodiv class=defult真实姓名:小明/div/td /tr tr td height=34nbsp;/td td height=27nbsp;/td tdlabel input name=check_name type=checkbox id=check_name value=1 checked=checked / a href=javascript:void(0卡塔尔(قطر‎onclick=document.getElementById('light'卡塔尔国.style.display='block';document.getElementById('fade'State of Qatar.style.display='block' 小编接收劳务条目 /a /label/td td id=t_info div id=light class=white_content div class=close a href=javascript:void(0State of Qataronclick=document.getElementById('light'卡塔尔.style.display='none';document.getElementById('fade'卡塔尔(قطر‎.style.display='none' 关闭/a /div div style=margin:10px; 为里是条目内容! /div /div /td /tr tr td height=60nbsp;/td td height=27nbsp;/td tdlabel input type=image name=imageField id=imageField src=images/btn.jpg onclick=javascript:return c(State of Qatar;/ /label/td tdnbsp;/td /tr /form/table

//

//

QQ:271728967

 

第四步便是check.php达成文件

率先步大家来成立贰个挂号文章reg.php

其三步正是在客户名框使用onblur(卡塔尔(قطر‎调用type.php文件

本文由威尼斯在线注册平台发布于热门新闻,转载请注明出处:第四步就是check.php实现文件

上一篇:关于跨站脚本漏洞攻击,跨站脚本攻击都是由于对用户的输入没有进行严格的过滤造成的 下一篇:这里先说下怎么生成这个ssh的私钥和公钥,转载时请务必以超链接形式标明文章原始出版、作者信息和本声明
猜你喜欢
热门排行
精彩图文