用隐藏的IFRAME
<form method=post action='check.php' target='checkiframe'.
<input type=text name='name'>
<input type=password name='pwd'>
<input type=submit name=submit value='提交'>
</form>
<iframe width=0 height=0 src='blank'>
</iframe>
然后再check.php中做校验,用js alert结果
<form method=post action='check.php' target='checkiframe'.
<input type=text name='name'>
<input type=password name='pwd'>
<input type=submit name=submit value='提交'>
</form>
<iframe width=0 height=0 src='blank'>
</iframe>
然后再check.php中做校验,用js alert结果
解决方案 »
- jquery,给input中的url赋值。
- 关于settimeout函数多线程
- 如何关掉打开的所有的浏览器页面
- 获取iframe
- 请教高手,关于setInterval在类中的应用
- 我的一个网页上有3个按钮都要用到同一个事件,请问怎么避免重复写事件?
- JAVASCRIPT中有没有类似PL/SQL中的MOD的函数啊?
- 在left帧中输入数据,想让mainFrame和bottomFrame同时更新,怎么不好用呢?请高手指点。
- 如何控制文件浏览控件<INPUT type="file">的Filter属性?
- 怎样让弹出的窗口位于显示屏幕中间的位置。而不是两边。
- 菜单问题
- 我的表格,内容多了后,自动将宽度变的很宽,破坏了网页布局,如何办?
用ASP也是一样做的啊
连接数据库,
Dim conn = server.CreateObject........我不会ASPset rs=Server.CreateObject("adodb.recordset")
sql = "select id from user where name='"&request.form("name")&"' and pwd = '"&request.form("pwd")&"'";
rs.open .........
然后判断结果啊,
If not rs.eof then
response.write("<script>alert('通过验证')</script>");
else
response.write("<script>alert('没有通过验证')</script>");