欢迎各位兄弟 发布技术文章
这里的技术是共享的
在form表单里写成这样:
<form id="formid"  name= "myform" method = 'post'  action = 'user_login_submit.action' onsubmit = "return checkUser();" >
            <table width="100%" border="0">
              <tr>
                <td width="60" height="40" align="right">用户名 </td>
                <td><input type="text" value="" class="text2" name = "username" id = "userid"/></td>
              </tr>
              <tr>
                <td width="60" height="40" align="right">密  码 </td>
                <td><input type="password" value="" class="text2" name = "userpass" id = "userpassid"/></td>
              </tr>
              <tr>
                <td width="60" height="40" align="right"> </td>
                <td><div class="c4">
                    <input type="submit" value="" class="btn2"  />
<input type="button" value="" class="btn2" onclick = "checkUser();" />
来自 http://blog.csdn.net/honey_claire/article/details/7658490