Hi, I am having some trouble generating a web form using fields specified in an ascii file. What I want to do is the following: 1) Read in the ascii file. This is of the form (can have N elements):
Object1 value1
Object2 value2
Object3 value3
Object4 value4
...
2) Generate a web form from the ascii file contents. Each line in the ascii file should represent a form checkbox option.
...
3) Display the form at a specific url.
4) On "submit", call a cgi script to process the form.
My problem is in step 2. I can easily generate a static form with fixed values and save it as a standard html form but I need something that will read in the ascii file and generate the html file on the fly when visiting that url.
Any advice on what the easiest way of doing this is?