Classic ASP - submitting unknown number and name of fields?

heliJuice

New Member
I have a large recordset being displayed to a user. Each record has an edit button which allows users to edit various data in the record. Certain records have more fields than others so the edit form has various different names and number of fields.For example one record would produce the following if the edit button is clicked:\[code\]<form id="frm1" name="frm1" method="post" action="changeJob.asp?jobNo=1101&jQueryID=1" target="_blank"><input type='text' name='Qty13' value='http://stackoverflow.com/questions/15711234/8' size="3" maxlength="3"/><input type="submit" name="btnFrm1" id="button" value="http://stackoverflow.com/questions/15711234/Submit" /></form>\[/code\]However another record would generate this:\[code\]<form id="frm2" name="frm2" method="post" action="changeJob.asp?jobNo=1102&jQueryID=2" target="_blank"><input type='text' name='Qty15' value='http://stackoverflow.com/questions/15711234/8' size="3" maxlength="3"/><input type='text' name='Qty16' value='http://stackoverflow.com/questions/15711234/8' size="3" maxlength="3"/><input type='text' name='Qty17' value='http://stackoverflow.com/questions/15711234/8' size="3" maxlength="3"/><input type='text' name='Qty18' value='http://stackoverflow.com/questions/15711234/8' size="3" maxlength="3"/><input type="submit" name="btnFrm2" id="button" value="http://stackoverflow.com/questions/15711234/Submit" /></form>\[/code\]As above, each of the input fields is assigned its unique name eg "Qty14" and its form has its own name eg "frm2". These need to be unique because I have some jQuery plus and minus buttons which allow users to increment the quantities.In changeJob.asp how can I determine which fields are being submitted where they have unique names and number? I can get the form name using a hidden field easily enough. I am trying to achieve something like:\[quote\] For Each field in frm1 ** Do SQL Update ** Next\[/quote\]Any guidance would be most appreciated :)
 
Back
Top