Nested Forms
by "Tom Campbell" <tom(at)selectsignposts.com>
|
Date: |
Tue, 7 Jan 2003 23:44:29 -0500 |
To: |
<hwg-techniques(at)hwg.org> |
|
todo: View
Thread,
Original
|
|
I have an order form. The header information is drawn from a database based
on a login. Within this form exists another form (one field, dropdown) that
the user makes a selection from. This selection looks up in another table of
the database and submits the results to the same page on which all this
exists.
The problem:
If my form tags are nested i.e. <form><form></form></form> I get an error
for an undefined form (the second form) and neither forms will submit. If
on the other hand I make it <form></form><form></form> the error goes away
and the lookup works, but the top form won't submit.
this doesn't work (undefined form2)
<form1>
fill the header
<form2>
dropdown to select
</form2>
more user input
</form1>
This works to fill the header and to select a record but form1 won't submit
<form1>
fill the header
</form1>
<form2>
dropdown to select
</form2>
what to do with more user input?
Does anyone have sage advice for a relative rookie?
Tom Campbell
Select Signposts, Inc
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA