Hi Jagc - thanks for the comments :)
I dont think I have explained my question very well (I never seem to put enough detail lol )
As the form elements and inputs are generated via a loop, there could be any number of elements.
I also only want to update the fields that have had a entry in..
See my screen shot image I have taken and this should give you a better idea...
http://www.stupot.co.uk/im
Thanks again
PDM
Main Topics
Browse All Topics





by: JagCPosted on 2007-07-03 at 04:20:28ID: 19410144
First you need to add a submit button.
")
)
Then set the action of the form to be the page you want to process the info.
On the processing page you can use:
sSomething = request.form("FORM_ITEM_ID
sSomething will now contain the content of the form item you specified as FORM_ITEM_ID. You can update the database with this now as you know what record is to be updated because you also do:
sRejectCode = request.form("Reject_Code"
sRejectID = request.form("Reject_ID")
As one of these seems to be the ID of the record to update, you simply use the appropriate one in the SQL statement.
Once you have the updated info in the database, then use response.redirect back to the display page.
Any more info, just ask :)