长沙市旅游规划院:多登陆界面问题

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 04:55:58
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'";
if (restore) selObj.selectedIndex=0;}
function mdsite(str)
{
if (str=="mail"
{
form2.action="http://mail.ny1949.com/horde/tomail.php";
}
else if(str=="短信平台"
form2.action="http://sms.cofco.com:8081/entsmsfront/logon.do;jsessionid=aR8cWo-ZvSG8";
else
{
alert("erorr");
return false;
}
return;
}
//-->
</script>
<form name="form2" id="form2" method="POST" action=http://mail.ny1949.com/horde/tomail.php >
<td height="25" align="right">用户名称:</td>
<td><input name="username" type="text" class="box4" id="username" size="11"></td>
<td height="25" align="right">用户密码:</td>
<td><input name="password" type="password" class="box4" size="11"></td>
<td height="25" align="right">登录目的:</td>
<td>
<select name="type" onChange="mdsite(this.options[this.selectedIndex].value)">
<option value="mail" selected>mail</option>
<option value="短信平台">短信平台</option> </select></td>
<td height="30" colspan="2" align="center"><input name="button" type="submit" class="button0" onClick="javascript:form2.submit();return true;"value=" 登 录 ">
<input type="hidden" name="s2" value="XXXXXX">
<input type="hidden" name="s" value="XXXXXX">
<input type="hidden" name="verifycode" value="XXXXXX">
<input type="hidden" name="name" id="name" value=""></td></form>

mail不能直接登陆进去,短信平台可以。。。 短信平台 和mail分别在两台服务器上,上面的东西不能改动。两者各自的用户名和password变量都不一样, 做成多登陆怎么弄啊?

写段js
submit的时候给各自的隐藏变量赋值