Hi there o wizened community!
I'm working on some "custom" TCL/ADP pages, and am reasonably comfortable with doing so, however I've hit a bit of a snag and need a pointer or two to become unstuck.
I'm dynamically generating a form which contains a list of select boxes - almost like a multiple choice questionnaire - and the bit I'm getting stuck on is how to then read the POST variables in order to process the data and get it into the database.
I'm not using any kind of formbuilder or similarsuch, because when I started this project I couldn't find sensible instructions, and we've now opted for an approach of generating the HTML with a bunch of string concatenation functions.
The (paraphrased) structure of the HTML would be thus:
<form ...>
<select name="item1">
<option value="1">X</option>
</select>
<select name="item2">
<option value="1">X</option>
</select>
<select name="item3">
<option value="2">Y</option>
</select>
...
<submit, etc.>
</form>
If it were ASP I'd iterate through the Controls collection of the Form, however I'm not sure how to do that in this scenario.
As it's been explained to me, any variable I wish to use in an insert statement has to appear in the page contract, but I don't see how that's possible with a dynamically generated control set ?
Can someone point me in the direction of some helpful documentation, or slap me about the head for missing something really obvious/stupid ?
Cheers,
Jason =)