简单的注册程序
2013-03-19 12:14
211 查看
<%@ page language="java" contentType="text/html" pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body bgcolor="green"> <script type="text/javascript"> function checkPassword(){ if(document.form.password.value.length==0){ alert("请输入密码"); return false; } if(document.form.cpassword.value.length==0){ alert("请输入确认密码"); return false; } if(document.form.password.value!=document.form.cpassword.value){ alert("两次输入密码不一致"); return false; } return true; } </script> <% request.setCharacterEncoding("utf-8"); response.setContentType("text/html;charset=utf-8"); %> <h1 align="center"><b>欢迎注册</b></h1> <form action="UserAction" method="post" name="form" align="center" onsubmit="return checkPassword()" > <table align="center"> <tr> <td align="center"> 用户名:<input type="text" name="username"> </td> </tr> <tr> <td align="center"> 密 码:<input type="password" name="password"> </td> </tr> <tr> <td align="center"> 确认密码:<input type="password" name="cpassword"> </td> </tr> <tr> <td> 性别:<input type="radio" name="sex" value="男" checked>男 <input type="radio" name="sex" value="女">女 </td> </tr> <tr> <td>学历: <select name="xueli"> <option>高中</option> <option selected>本科</option> <option>大专</option> <option>初中</option> </select> </td> </tr> <tr> <td> <input type="submit" name="submit" value="确定" onclick="checkPassword"> <input type="reset" name="reset" value="取消"> </td> </tr> </table> </form> </body> </html>
相关文章推荐
- 第一个简单的用户注册验证php程序
- 官网_能简单描述一下新生从注册参加自考,到最后毕业的大致程序么?
- Python小练习 - 用字典编写简单的注册、登录程序
- Delphi简单TCP聊天程序(三):登录注册功能
- php程序注册功能简单判断用户名是否存在
- 一个简单的域名注册情况查询程序
- 简单用户注册程序
- 一个简单的PHP登录与注册程序源码
- 一个简单的后台验证程序(注册流程常用)
- 新手教你学Spring MVC4.0+MyBatis+MySQL5.0实现简单用户注册登录程序(二)
- 新手教你学Spring MVC4.0+MyBatis+MySQL5.0实现简单用户注册登录程序(一)
- python学习之最简单的用户注册及登录验证小程序
- go语言实现一个简单的登录注册web小程序
- Python学习之路,简单的注册登录小屁程序
- go语言实现一个简单的登录注册web小程序
- 注册程序集到 GAC 中最简单的笨方法
- 一个简单的域名注册情况查询程序
- Tkinter 简单用户登录注册程序
- 新手教你学Spring MVC4.0+MyBatis+MySQL5.0实现简单用户注册登录程序(三)
- 简单的注册程序的后台代码