牙根处发黄:关于html的问题

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 14:28:53
<form action="http://passport.baidu.com/?login" method="post">
<input type="text" name="username" value="百度知道用户名" /><br><input type="password" name="loginpass" value="百度知道密码" /><br
<input name="submit" type="submit" value=登录 />
</form>

这是我做的快速登录系统
但是登录后却不是直接到百度知道首页,而是个人资料页面
这是什么原因?
加上去之后文件还是html么?
还是改成asp或者其他动态网页后缀名

<input type="hidden" name="tpl" value="ik">
<input type="hidden" name="aid" value="7">
<input type="hidden" name="return_method"
value="get" />
<script language="javascript">
document.write('<input type="hidden" name="u" value="' + location.href + '">');
</script>
以上是你和原代码的差别
你把<script language="javascript">
document.write('<input type="hidden" name="u" value="' + location.href + '">');
</script>加上就可以了

当然了,就是在baidu的页面输入用户名和密码时也的按下登录啊..这里没有登录..没有对你输入的信息确认的命令.