php验证码
来源:互联网 发布:c语言的数据类型定义 编辑:程序博客网 时间:2024/06/06 04:34
<html><title>用户注册</title><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><script language="javascript">function check(){if(myform.username.value == ""){alert("用户名不能为空!");myform.username.focus();return false;}if(myform.pwd.value == ""){alert("密码不能为空!");myform.pwd.focus();return false;}if(myform.ccode.value == ""){alert("验证码不能为空!");myform.ccode.focus();return false;}return true;}</script></head><body><form action="" method="post" onsubmit="javascript:return check()" name="myform"><label for="user">姓 名:</label><input type="text" name="username" id="user"/><br><label for="pwd">密 码:</label><input type="password" name="pwd" id="pwd"/><br><label for="ccode">验证码:</label><input type="text" name="ccode" id="ccode"><?php $num=mt_rand(1000,9999);for($i=0;$i<4;$i++){$n=substr($num,$i,1);echo "<image src='images/code/$n.gif'>";}?><br> <input type="submit" name="sub" value="提交"/></form></body></html>
0 0
- php图形验证码
- php 验证码
- PHP 验证码
- PHP图片验证码
- php验证码类
- php实现验证码
- PHP实现验证码
- PHP实现验证码
- PHP生成验证码
- PHP验证码
- php验证码类
- PHP 生成验证码
- php 验证码
- php 图片验证码
- php 验证码控件
- php 验证码总结
- PHP验证码生成
- PHP生成验证码
- linux下使用code::block报c99错误解决方法
- 北大先修课参赛总结
- poj 1062 昂贵的聘礼 【枚举最短路】
- contiki进程管理
- linux上搭建mpich+ecllipse环境
- php验证码
- 【PCL】x64+VS2010+PCL1.7.1及其第三方库的安装编译过程
- 基于asp.net + easyui框架,一步步学习easyui-datagrid——实现分页和搜索(二)
- 为什么有时ping不通www.baidu.com但可以访问www.baidu.com网页?
- StateList Drawable的用法以及各属性的作用
- 《C语言及程序设计》实践参考——完数
- 尹成老师主办培训教学机构 智锋互联 传播智慧我们用心,人生冲锋你们用心
- 《C语言及程序设计》实践参考——n=a!+b!+c!
- 《C语言及程序设计》实践参考——回文数