register.jsp
上传用户:sanhemotor
上传日期:2010-01-25
资源大小:381k
文件大小:4k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page contentType="text/html;charset=gb2312" %>
  2. <html>
  3. <head>
  4. <title>电子商务13班查询系统</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <link href="../456/common/css/sunhoo.css" rel="stylesheet" type="text/css">
  7. <script language="JavaScript">
  8. function ValidateLoginForm(form)
  9. {
  10.    
  11.    if (form.name.value == "")
  12.    {
  13.       alert("请输入用户名");
  14.       return false
  15.    }
  16.       if (form.password.value == "")
  17.    {
  18.       alert("请输入密码");
  19.       return false
  20.    }
  21.    else if((form.password.value.length<3)||(form.password.value.length>8)){
  22. alert("密码必须是3-8位字母或数字");
  23. return false;
  24. }
  25.       if (form.re_password.value == "")
  26.    {
  27.       alert("请输入密码确认");
  28.       return false
  29.    }
  30.    else if(form.password.value!=form.re_password.value){
  31. alert("两次密码不同!");
  32. return false;
  33. }
  34.    if (form.telephone.value == "")
  35.    {
  36.       alert("请输入电话");
  37.       return false
  38.    }
  39.    if (form.e_mail.value == "")
  40.    {
  41.       alert("请输入e_mail");
  42.       return false
  43.    }
  44.       if (form.address.value == "")
  45.    {
  46.       alert("请输入address");
  47.       return false
  48.    }
  49.    return true
  50. }
  51.  </script>
  52. </head>
  53. <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"> 
  54. <tr>
  55.     <td width="12%" height="307" valign="top"></td>
  56.     <td width="88%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  57.         <tr>
  58.           
  59.       <td valign="top">&nbsp;</td>
  60.         </tr>
  61.         <tr>
  62.           <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  63.               <tr>
  64.                 
  65.           <td width="19%">&nbsp;</td>
  66.                 <td width="81%" background="image/index_right_bg.gif"><form name="form1" method="post" action="register_confirm.jsp">
  67.                     
  68.   <table width="38%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
  69.     <tr align="center" bgcolor="#f6f6f6">
  70.                         
  71.       <td colspan="2"><b>用户注册</b></td>
  72.                       </tr>
  73.                       <tr align="center" bgcolor="#FFFFFF">
  74.                         <td><div align="right">用 
  75.                                     户 名</div></td>
  76.                         <td><input type="text" name="name"></td>
  77.                       </tr>
  78.                       <tr align="center" bgcolor="#FFFFFF">
  79.                         
  80.       <td width="36%"><div align="right">密码:</div></td>
  81.                         <td width="64%"><input name="password" type="password" ></td>
  82.                       </tr>
  83.                       <tr align="center" bgcolor="#FFFFFF">
  84.                         <td><div align="right">密码确认:</div></td>
  85.                         <td><input name="re_password" type="password"  value=""></td>
  86.                       </tr>
  87.   
  88.     <tr bgcolor="#FFFFFF"> 
  89.       <td height="25"> 
  90.         <div align="right">电 
  91.       话:</div></td>
  92.                                 
  93.       <td height="25"> 
  94.         <div align="center"> 
  95.                                     <input type="text" name="telephone"  >
  96.         </div></td>
  97.     </tr>
  98.                               
  99.     <tr bgcolor="#FFFFFF"> 
  100.       <td height="25">        <div align="right">E_mail :</div></td>
  101.                                 
  102.       <td height="25"> 
  103.         <div align="center"> 
  104.                                     <input type="text" name="e_mail"  >
  105.         </div></td>
  106.     </tr>
  107.                               
  108.     <tr bgcolor="#FFFFFF"> 
  109.       <td height="25"> 
  110.         <div align="right">送货地址:</div></td>
  111.                                 
  112.       <td height="25"> 
  113.         <div align="center"> 
  114.                                     <input type="text" name="address"  >
  115.         </div></td>
  116.     </tr>
  117.                       <tr align="center" bgcolor="#FFFFFF">
  118.                         <td colspan="2"><input type="submit" src="img/index.login.gif" width="50" height="22" border="0" ></a></td>
  119.                       </tr>
  120.                     </table>
  121.                   
  122.   <span class="top">
  123.   </form>
  124.                 </td>
  125. </tr> </td> </tr> 
  126. <tr>
  127.           
  128.   <td><span class="top">                  </td>
  129.         </tr></td>
  130. </tr> </Form> 
  131. </body>
  132. </html>