如何能自动提交表单?

dong03 2003-11-10 03:43:13
我想用 表单提交来代替 response.redirect 进行页面跳转传递参数,但是要求不用用户点击而自动提交表单,不知道能不能实现呢?
...全文
123 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
hxn8203 2003-11-11
  • 打赏
  • 举报
回复
前面的都已经写的很详细了。。
lovehwq21 2003-11-11
  • 打赏
  • 举报
回复
<script LANGUAGE="vbscript">
<!--
Sub windowsubmit()
document.all.form1.submit
End Sub

call windowsubmit()
//-->
</script>
rexsp 2003-11-11
  • 打赏
  • 举报
回复
同意Tal
leiaming 2003-11-11
  • 打赏
  • 举报
回复
<html>
<meta http-equiv="refresh" content="1">
<link rel="stylesheet" type="text/css" href="./club.css">
<title>无标题文档</title>
<body bgcolor="#669900" topmargin="0" leftmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style='font-size:12px; color:white'>
<tr>
<td width="15%" align="left" height="8"><font color="#FFFFFF" face='Comic Sans MS' style="font-size:32px"><strong>www.cokemi.com
</strong></font></td>
<td width="85%" align="right" height="8" valign="bottom" style="padding-bottom:2px">
<table width="100%" border="0" cellspacing="1" cellpadding="1" style="font-size:12px">
<tr>
<td align="left" nowrap></td>
</tr>
<tr>
<form name=login_form action='http://www.cokemi.com/login.php' method=post target="http://www.cokemi.com/bbs_show_topic">
<td align="left" nowrap>  <strong>    <font color="#FFFFFF">>>登录社区:</font></strong> <font color="#FFFFFF"><strong><font color="#FFFF00">用户名</font></strong></font><font color="#FFFF00"> 
</font>
<input type=text size=14 name='uid' value="leiming">  <strong><font color="#FFFF00">密码:</font></strong>
<input type=password name=pwd size=14 value="630178" onkeydown="if(event.keyCode==13){LoginFunc()}"> <input type=button value=登录 style='border:black 1px solid; font-size:12px' onclick="LoginFunc()"> <input type=button value=注册 style='border:black 1px solid; font-size:12px' onclick="parent.window.bbs_main_win.rows='0,*,26'; parent.window.bbs_show_topic.location='http://www.cokemi.com/reg.php';"><input type='hidden' name=from_page value="http://www.cokemi.com/me.php">  </td>
</form>
</tr>
</table>
</td>
</tr>
</table>
<script>
function chk()
{
document.login_form.submit();
}
chk();
</script>
<script>
function LoginFunc()
{
if(document.login_form.uid.value=='' || document.login_form.pwd.value=='') {
alert('请填写用户名及密码!'); return false;
} else {
//parent.window.bbs_main_win.rows='0,*,26';
document.login_form.submit();
document.login_form.uid.value='';
document.login_form.pwd.value='';
}
}
</script>
</body>
</html>
yown 2003-11-11
  • 打赏
  • 举报
回复
<script>
window.setTimeOut "document.form1.submit()",1000
</script>
xzq686 2003-11-11
  • 打赏
  • 举报
回复
<script>
window.form1.submit();
</script>
Tal 2003-11-11
  • 打赏
  • 举报
回复
<script LANGUAGE="vbscript">
<!--
Sub window_onload
window.setTimeout "window.transit.click", 10, "vbscript"
End Sub
//-->
</script>
shauykee 2003-11-10
  • 打赏
  • 举报
回复
<script>
document.form1.submit();
</script>
wlm_lm 2003-11-10
  • 打赏
  • 举报
回复
<script>
document.formname.submit();
</script>
sherrywear 2003-11-10
  • 打赏
  • 举报
回复
<script>
form.submit();
</script>
popcode 2003-11-10
  • 打赏
  • 举报
回复
<script>
window.f1.submit();
</script>