I don't think this is a client-side issue.
Go with the hidden input. If you use different submit buttons, you won't be
able to tell which form it is when a user submits with Enter or Ctrl+M.
<form action="page.asp" method="post">
<input type="hidden" name="whichForm" value="1">
< rest of form>
</form>
<form action="page.asp" method="post">
<input type="hidden" name="whichForm" value="2">
< rest of form>
</form>
<%
Select Case Request.Form("whichForm")
Case "1"
Response.Write "Form 1 was submitted"
Case "2"
Response.Write "Form 2 was submitted"
End Select
%>
Ray at work
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Poppy wrote on 09 feb 2004 in microsoft.public.inetserver.asp.general: If I have 2 forms on a page "form1" & "form2", is there a way to
figure out which form has in fact been submitted ?
name the submit button or add a hidden input
in fact off topic, clientside issue.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)