Hi,
I have a perl script that creates a web form. The user can then fill in the form (which contains LOTS of checkboxes) and submit the data. I then need the script to display the form again, but this time reflecting the user's input. So if the original form showed a blank for their name and a set of checkboxes for favorite food, I want the script to show the same form, but this time with the user's responses filled in.
I can do it pretty easily, with the text fields, and when I have a checkbox, I know how to have the script write the form with the checkbox "checked" if the checkbox field's value is "on", but I have a LOT of checkboxes, is there some easy way to have my script do what I want without having to break up the HTML I'm writing in a "here" statement with a bunch of perl statements?
I have a perl script that creates a web form. The user can then fill in the form (which contains LOTS of checkboxes) and submit the data. I then need the script to display the form again, but this time reflecting the user's input. So if the original form showed a blank for their name and a set of checkboxes for favorite food, I want the script to show the same form, but this time with the user's responses filled in.
I can do it pretty easily, with the text fields, and when I have a checkbox, I know how to have the script write the form with the checkbox "checked" if the checkbox field's value is "on", but I have a LOT of checkboxes, is there some easy way to have my script do what I want without having to break up the HTML I'm writing in a "here" statement with a bunch of perl statements?