一个表中数据可否提交到不同页面???

slashh 2003-09-16 09:56:46
如题
盼解答
...全文
36 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
uhoo 2003-09-16
  • 打赏
  • 举报
回复
哈哈,幼稚!
uhoo 2003-09-16
  • 打赏
  • 举报
回复
哈哈,幼稚!
xiaofei7569 2003-09-16
  • 打赏
  • 举报
回复
没有必要的,可以用连接转向。
slashh 2003-09-16
  • 打赏
  • 举报
回复
呵呵
又学到东西了
arcow 2003-09-16
  • 打赏
  • 举报
回复
保存为htm页面看看就明白
重点看看我的javascript


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>华北工学院广播站</title>
<link href="images/main.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}

function dosubmit(){//v1.0
window.open('http://www.url.com/dwxcb/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
window.open('http://www.url.com/gbz/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
window.open('http://www.url.com/yb/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
window.open('http://www.url.com/dst/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
return false;
}




//-->
</script>
</head>

<body topmargin="0">
<table width="323" border="0" align="center" cellpadding="0" cellspacing="0" class="border1" style="BORDER-LEFT: #DC413F 1px solid;">
<form name="admin" method="post" onSubmit="return dosubmit();">
<tr align="center">
<td colspan="2" class="unnamed1"><strong><font color="#000000">登陆</font></strong></td>
</tr>
<tr>
<td width="113" align="right">用户名</td>
<td width="210"><input name="username" type="text" id="username" size="20" maxlength="20"></td>
</tr>
<tr>
<td align="right">密码</td>
<td><input name="password" type="password" id="password" size="20" maxlength="20"></td>
</tr>
<tr>
<td> </td>
<td>   
<input type="submit" name="Submit" value="登陆"></td>
</tr>
</form>
</table>


</body>
</html>
arcow 2003-09-16
  • 打赏
  • 举报
回复
保存为htm页面看看就明白
重点看看我的javascript


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>华北工学院广播站</title>
<link href="images/main.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}

function dosubmit(){//v1.0
window.open('http://www.url.com/dwxcb/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
window.open('http://www.url.com/gbz/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
window.open('http://www.url.com/yb/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
window.open('http://www.url.com/dst/judge.asp?username='+window.admin.username.value+'&password='+window.admin.password.value);
return false;
}




//-->
</script>
</head>

<body topmargin="0">
<table width="323" border="0" align="center" cellpadding="0" cellspacing="0" class="border1" style="BORDER-LEFT: #DC413F 1px solid;">
<form name="admin" method="post" onSubmit="return dosubmit();">
<tr align="center">
<td colspan="2" class="unnamed1"><strong><font color="#000000">登陆</font></strong></td>
</tr>
<tr>
<td width="113" align="right">用户名</td>
<td width="210"><input name="username" type="text" id="username" size="20" maxlength="20"></td>
</tr>
<tr>
<td align="right">密码</td>
<td><input name="password" type="password" id="password" size="20" maxlength="20"></td>
</tr>
<tr>
<td> </td>
<td>   
<input type="submit" name="Submit" value="登陆"></td>
</tr>
</form>
</table>


</body>
</html>
yangsm 2003-09-16
  • 打赏
  • 举报
回复
差不多吧!一种是用两个FROM或者根据条件来做
ling_l 2003-09-16
  • 打赏
  • 举报
回复
可以,可以使用两个FORM提交到两个不同的页面,也可以使用一个FORM依次提交到两个页面
slashh 2003-09-16
  • 打赏
  • 举报
回复
能具体说说吗??
富察咪咪 2003-09-16
  • 打赏
  • 举报
回复
可以,在页面使用两个form
kangji 2003-09-16
  • 打赏
  • 举报
回复
可以
chen8967 2003-09-16
  • 打赏
  • 举报
回复
在脚本里设置提交的页面就可以了!
条件1
document.form1.action=""

条件2
document.form1.action-
slashh 2003-09-16
  • 打赏
  • 举报
回复
比如说
一个登陆页面
我要将用户名和密码提交到两个check页面
只是突发奇想
不知道有没有可能实现
alan815 2003-09-16
  • 打赏
  • 举报
回复
没说清楚呀
ttt2 2003-09-16
  • 打赏
  • 举报
回复
不明白说的详细点
slashh 2003-09-16
  • 打赏
  • 举报
回复
UP~!

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧