This is a multi-part message in MIME format.
------=_NextPart_000_0165_01C36010.CBCCDD90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
How does one loop through the contents of a form complicated by dynamic
construction of checkboxes which are assigned a 'model' and 'listingID' =
to
the NAME field on the fly in this syntax: Hunter_69. Here is what the =
form
looks like. I have the difficulty of inserting the multiple items =
selected
by the user the first time he visits and uses the screen and then using =
an
UPDATE when he visits later.
Model | Original Price | Reduced Price | Watch Item
F Pajot | 452000 |30000 |[Tick ]
Lagoon | 60000 |38000 |[ ]
Hunter | 552000 |350000 |[ ]
SUBMIT
<FORM action=3D"formhandler_databaseinsert.asp">
<INPUT type=3D"checkbox" id=3Dcheckbox1 =
name=3D<%=3Dmodel%>_<%=3DListingsID%>>
</form>
...However, I am not sure how to do a multiple update when iterating =
through
the form collection as I don't know in advance what the NAME field would =
be
as it is based on the concantenation of the 'Model' and the 'ListingID' =
eg:
FoutainPajot_33.
How does on tackle mutiple inserts or update when you have to loop =
through a
form with DYNAMIC names for the eg: Checkbox field?
Many thanks
jason
------=_NextPart_000_0165_01C36010.CBCCDD90
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2><FONT=20
face=3D"Times New Roman" size=3D3>How does one loop through the contents =
of a form=20
complicated by dynamic<BR>construction of checkboxes which are assigned =
a=20
'model' and 'listingID' to<BR>the NAME field on the fly in this syntax:=20
Hunter_69. Here is what the form<BR>looks like. I have the =
difficulty of=20
inserting the multiple items selected<BR>by the user the first time he =
visits=20
and uses the screen and then using an<BR>UPDATE when he visits=20
later.<BR><BR>Model | Original Price | Reduced Price | Watch=20
Item</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3>F=20
Pajot | =
452000 =20
|30000 =
|[Tick=20
]<BR>Lagoon | 60000 &n=
bsp; =20
|38000 =20
|[ ]</FONT></FONT></DIV>
<DIV>Hunter | =
552000 =20
|350000 =
|[=20
]</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman"=20
size=3D3>SUBMIT</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman"=20
size=3D3></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3><FONT=20
face=3DArial size=3D2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3><FONT=20
face=3DArial size=3D2><FORM=20
action=3D"formhandler_databaseinsert.asp"></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3><FONT=20
face=3DArial size=3D2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3><FONT=20
face=3DArial size=3D2><INPUT type=3D"checkbox" id=3Dcheckbox1=20
name=3D<%=3Dmodel%>_<%=3DListingsID%>></FONT></FONT></FONT=
></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3><FONT=20
face=3DArial size=3D2></form></FONT></DIV>
<DIV><BR><BR>...However, I am not sure how to do a multiple update when=20
iterating through<BR>the form collection as I don't know in advance what =
the=20
NAME field would be<BR>as it is based on the concantenation of the =
'Model' and=20
the 'ListingID' eg:<BR>FoutainPajot_33.<BR><BR>How does on tackle =
mutiple=20
inserts or update when you have to loop through a<BR>form with DYNAMIC =
names for=20
the eg: Checkbox field?<BR><BR>Many=20
thanks<BR>jason</FONT><BR><BR><BR><BR></DIV></FONT></BODY></HTML>
------=_NextPart_000_0165_01C36010.CBCCDD90--