I am in the middle of constructing a shopping cart and have so far been able to pull a list of items from an Access table for display via .asp to the browser. in the course of trying to get the submit info to reflect the choices selected via an asp generated page, i noticed that the actual names and descriptions of my items are not form elements (text boxes, etc.) but HTML code — and as far as I know, you pass the name/value of the form element in a SUBMIT. So, I got asp to create a checkbox form element with the ItemID of each Title selected written to the checkboxes NAME element. Now I should be able to pass the checkbox to another form via SUBMIT, as it is a form element but, the problem now arises:
I don’t know ahead of time which checkboxes will be coming thru on the SUBMIT button, so what I’d like to do is set up a For Each…Next loop to parse thru the pages’ form elements and display only those for which a checkbox has been clicked. So: is there an .asp method for finding all form elements in a page? Or is there something else that would work better? (I thought about javascript but not sure where to go after the word ‘javascript’ seeps thru my brain)
asp 3.0+, 2000 Prof, Office 2000, Frontpage as editor, Access2000 as db source. trying to be platform-neutral but NS (-)4… may not apply.