1。可以在提交前进行检测
2。可以在提交后和提交完成中间插入一个检测页面,如果检测通过跳入完成,否则跳回注册叶面。

解决方案 »

  1.   

    <form name="form1" method="post" action="check.asp">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="5%">用户名:</td>
              <td width="32%"><input type="text" name="textfield"></td>
              <td width="63%">&nbsp;</td>
            </tr>
            <tr>
              <td>密码:</td>
              <td><input type="password" name="textfield2"></td>
              <td><input type="button" value="用户名检测" onclick="javascript:aaa()"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="submit" name="Submit2" value="提交">
                <input type="reset" name="Submit3" value="重置"></td>
              <td>&nbsp;</td>
            </tr>
          </table>
        </form>
    <script>
    function aaa()
    {
    u="checkuser.asp?username="+form1.textfield.value;
    window.open(u)
    }
    </script>