in reply to Dynamic CheckBoxes
The HTML:Template code to do this looks like this(cut straight from some production code):
<TMPL_LOOP NAME=fields> <INPUT TYPE=CHECKBOX NAME="field_<TMPL_VAR NAME="id">" <TMPL_VAR NAME= +"value">> <TMPL_VAR NAME="text"> <br> </TMPL_LOOP>
You must then pass an array of anonymous hashes which look like this: { id => "id number", value => "checkbox value", text => "What the user sees next to the checkbox" }. In your program this would look like(untested code):
push @array, { id => "id number", value => "checkbox value", text => " +What the user sees" };
____________________
Jeremy
I didn't believe in evil until I dated it.
|
|---|