You can't submit more than one form.
Also, on the server-side, the server has no concept of the layout of your
page (or the number of forms on it). All it sees is the data submitted by
the browser. So, if the first form contained an element called "firstname",
and the second form contained an alement called "status" then you'd still
do:
Request.Form("name")
Request.Form("status")
It's just that one of those two would be blank.
Now, your options are:
a) put everything into one big form
-or-
b) when you submit either form, use some client-side javascript to copy all
the values in the other form into hidden form elements in the form being
submitted. Obviously this relies on the client supporting/allowing
javascript.
Cheers
Ken
"Andrew Cheng" <an********@yahoo.com> wrote in message
news:u3*************@TK2MSFTNGP11.phx.gbl...
:
: Hi all,
: Can I submit more than one form on the same page? If yes, how do I
: reference the request field on different form? I tried the following
: and not working. Is there any sample code out there? Thanks.
:
: request.form("form_a")("Name")
:
:
: request.form("form_b")("Status")
:
: *** Sent via Devdex
http://www.devdex.com ***
: Don't just participate in USENET...get rewarded for it!