基于prototype.js验证框架(validation.js)的三个应用
2010-09-14 13:21:50 来源:WEB开发网需求:
sapid和password必输
且必须从后台数据库找到sapid和password对应的记录,否则登陆不成功,并给出提示信息
html代码:
<formmethod=postaction="requisition.html"id="frmLogin">
<tablealign="center"style="height:100%">
<tr>
<td>
<fieldsetstyle="padding:10px">
<legend>Login</legend>
<table>
<tr><tdcolspan="2"><inputtype="hidden"id="errMsg"></td></tr>
<tr>
<tdclass="label">*SAPID</td>
<td><inputtype="text"name="sapId"id="sapId"class="required"></td>
</tr>
<tr>
<tdclass="label">*Password</td>
<td><inputtype="password"name="password"id="password"class="required"></td>
</tr>
<tr>
<tdcolspan="2"align="center"><inputtype="submit"class="submit"value="Login">
<buttonclass="submit"onclick="Login.goRegister()">Register</button></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</form>
更多精彩
赞助商链接