- <%@ page contentType="text/html;charset=gb2312" %>
- <html>
- <head>
- <title>电子商务13班查询系统</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../456/common/css/sunhoo.css" rel="stylesheet" type="text/css">
- <script language="JavaScript">
- function ValidateLoginForm(form)
- {
- if (form.name.value == "")
- {
- alert("请输入用户名");
- return false
- }
- if (form.password.value == "")
- {
- alert("请输入密码");
- return false
- }
- else if((form.password.value.length<3)||(form.password.value.length>8)){
- alert("密码必须是3-8位字母或数字");
- return false;
- }
- if (form.re_password.value == "")
- {
- alert("请输入密码确认");
- return false
- }
- else if(form.password.value!=form.re_password.value){
- alert("两次密码不同!");
- return false;
- }
- if (form.telephone.value == "")
- {
- alert("请输入电话");
- return false
- }
- if (form.e_mail.value == "")
- {
- alert("请输入e_mail");
- return false
- }
- if (form.address.value == "")
- {
- alert("请输入address");
- return false
- }
- return true
- }
- </script>
- </head>
- <body bgcolor="#F4F5FF" leftmargin="0" topmargin="0"><form name="login" action="register_confirm.jsp" method=post onSubmit="return ValidateLoginForm(this)"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="12%" height="307" valign="top"></td>
- <td width="88%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top"> </td>
- </tr>
- <tr>
- <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="19%"> </td>
- <td width="81%" background="image/index_right_bg.gif"><form name="form1" method="post" action="register_confirm.jsp">
- <table width="38%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
- <tr align="center" bgcolor="#f6f6f6">
- <td colspan="2"><b>用户注册</b></td>
- </tr>
- <tr align="center" bgcolor="#FFFFFF">
- <td><div align="right">用
- 户 名</div></td>
- <td><input type="text" name="name"></td>
- </tr>
- <tr align="center" bgcolor="#FFFFFF">
- <td width="36%"><div align="right">密码:</div></td>
- <td width="64%"><input name="password" type="password" ></td>
- </tr>
- <tr align="center" bgcolor="#FFFFFF">
- <td><div align="right">密码确认:</div></td>
- <td><input name="re_password" type="password" value=""></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">
- <div align="right">电
- 话:</div></td>
- <td height="25">
- <div align="center">
- <input type="text" name="telephone" >
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> <div align="right">E_mail :</div></td>
- <td height="25">
- <div align="center">
- <input type="text" name="e_mail" >
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">
- <div align="right">送货地址:</div></td>
- <td height="25">
- <div align="center">
- <input type="text" name="address" >
- </div></td>
- </tr>
- <tr align="center" bgcolor="#FFFFFF">
- <td colspan="2"><input type="submit" src="img/index.login.gif" width="50" height="22" border="0" ></a></td>
- </tr>
- </table>
- <span class="top">
- </form>
- </td>
- </tr> </td> </tr>
- <tr>
- <td><span class="top"> </td>
- </tr></td>
- </tr> </Form>
- </body>
- </html>