Ajax使用者註冊驗證

來源:互聯網
上載者:User
 代碼如下 複製代碼
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gbk">
<title>ajax使用者註冊驗</title>
<link href="style.css教程" rel="stylesheet" type="text/css">
<script language="網頁特效" type="text/javascript" src="from_ck.js"></script>
</head>
<body>
<div id="reg">
<h1>ajax使用者註冊驗證</h1>
<form name="formuser" onsubmit="return register();" action=user.php
method=post>
  <br>
  <table width="100%" align=center border=0>
    <tbody>
      <tr>
        <td align=right width="15%"><strong>使用者名稱:</strong></td>
        <td width="57%"><input id="username" onblur="chkusername(this)"
      name="username">
            <span id="username_notice" >*</span></td>
      </tr>
      <tr>
        <td align=right><strong>email:</strong></td>
        <td><input id="email" onblur="checkemail(this)" name="email">
            <span id=email_notice >*</span></td>
      </tr>
      <tr>
        <td align=right><strong>密碼:</strong></td>
        <td><input id="password" onblur="check_password(this)"
      onkeyup="checkintensity(this.value)" type="password" name="password">
            <span
      id=password_notice >*</span></td>
      </tr>
      <tr>
        <td align=right><strong>密碼強度:</strong></td>
        <td><table cellspacing=0 cellpadding=1 width=145 border=0>
          <tbody>
            <tr align=middle>
              <td id=pwd_lower width="33%">弱</td>
              <td id=pwd_middle width="33%">中</td>
              <td id=pwd_high width="33%">強</td>
            </tr>
          </tbody>
        </table></td>
      </tr>
      <tr>
        <td align=right><strong>確認密碼:</strong></td>
        <td><input id="conform_password" onblur="check_conform_password(this)"
      type="password" name="confirm_password">
            <span id=conform_password_notice >*</span></td>
      </tr>
      <tr>
        <td align=right><strong>msn:</strong></td>
        <td><input name=other[msn]>        </td>
      </tr>
      <tr>
        <td align=right><strong>qq:</strong></td>
        <td><input name=other[qq]>        </td>
      </tr>
      <tr>
        <td align=right><strong>辦公電話:</strong></td>
        <td><input name=other[office_phone]>        </td>
      </tr>
      <tr>
        <td align=right><strong>家庭電話:</strong></td>
        <td><input name=other[home_phone]>        </td>
      </tr>
      <tr>
        <td align=right><strong>手機:</strong></td>
        <td><input name=other[mobile_phone]>        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><label>
          <input type="checkbox" checked value="1" name="agreement" onblur="check_agreement(this)">
          <b>我已看過並接受《<a href="#">使用者協議</a>》<span id=agreement_notice >*</span></b></label></td>
      </tr>
      <tr>
        <td  ><input type=hidden value=act_register name=act></td>
        <td  ><input type=submit value=確認註冊&nbsp;&nbsp;&nbsp; name="submit1" class="anniu" disabled></td>
      </tr>
      <tr>
        <td colspan=2>&nbsp;</td>
      </tr>
    </tbody>
  </table>
</form>
</div>
</body>
</html>

源碼下載地址
http://down.111cn.net/down/code/js/2010/0904/20636.html
效果預覽地址
http://g.111cn.net/javascript/code/20100904/ajax/

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.