try this:
whatever.html
Code:
<html>
<head>
<script language=javascript>
function doit(x)
{
switch(x)
{
case 1:
document.frm1.action="some.asp";
break;
case 2:
document.frm1.action="someother.asp";
break;
}
document.frm1.submit();
}
</script>
</head>
<body>
<form name=frm1>
<input name=txt1>
<input name=txt2>
</form>
<form name=frm2>
<input type='button' name=but1 onClick="doit(1)" value="Submit to choice 1">
<input type='button' name=but2 onClick="doit(2)"value="Submit to choice 2">
</form>
</body>
</html>
someother.asp
Code:
<%@ Language=VBScript %>
<HTML>
<HEAD>
</HEAD>
<BODY>
<h1>someother asp</h1>
<%
response.write("Text 1: " & request("txt1") & "<BR>")
response.write("Text 2: " & request("txt2") & "<BR>")
%>
</BODY>
</HTML>
some.asp
Code:
<%@ Language=VBScript %>
<HTML>
<HEAD>
</HEAD>
<BODY>
<h1>some asp</h1>
<%
response.write("Text 1: " & request("txt1") & "<BR>")
response.write("Text 2: " & request("txt2") & "<BR>")
%>
</BODY>
</HTML>