Chris,
Try the following using Javascript, although you will require two submit
links,
one for each form. Ideally, you should try to stick to one form per page.
*************** ASP page with Forms ******************************
<form method="post" name="firstForm">
</form>
<a href="javascript
: document.firstForm.submit();"
onmouseover="document.firstForm.action='/myPage.asp?PAGE_ID=FIRSTFORM';">Sub
mit First Form</a>
<form method="post" name="secondForm">
</form>
<a href="javascript
: document.secondForm.submit();"
onmouseover="document.secondForm.action='/myPage.asp?PAGE_ID=SECONDFORM';">S
ubmit Second Form</a>
************************************************** ****************
On the myPage.asp you will need to identify which form has been
submitted, I've done this with a querystring, so you'll need to get the
value of the querystring then use that to determine which request.form
actions to do. so.....
****************** myPage.asp ************************************
<%
PAGE_ID=Request.Querystring("PAGE_ID")
If PAGE_ID=FIRSTFORM Then
Request.Form("blah1")
Request.Form("blah2")
Request.Form("blah3")
End If
If PAGE_ID=SECONDFORM Then
Request.Form("blah4")
Request.Form("blah5")
Request.Form("blah6")
End If
%>
************************************************** ****************
Hope this helps, Dominic
"Chris Leffer" <ch****@wank.com> wrote in message
news:O4**************@TK2MSFTNGP09.phx.gbl...
Hi.
If I have two forms in the same asp page:
<form name='firstForm' action='myPage.asp'>
</form>
<form name='secondForm' action='myPage.asp'>
</form>
When using request.form, how can I get values from a specific form?
Regards,
Chris Leffer
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!