in reply to Beautifying CGI.pm forms/tables

"Are there form/table templates for us to use somewhere?"

I usually just make them myself. You really need to sit down and design just how general you want to make your templates. YMMV. Here is an example i came up with for this problem using Template. If you have it installed, just save the following to a file and run tpage on it.

[% USE CGI %] [% elements = [ { label = 'Name:' name = 'name' } { label = 'Address 1:' name = 'address1' } { label = 'Address 2:' name = 'address2' } { label = 'City/State:' name = 'city' } { label = 'Country:' name = 'country' } { label = 'Zipcode:' name = 'zip' } ] %] [% BLOCK row %] <tr> <td align="right">[% label %]</td> <td align="left"> [% CGI.textfield({Name => name Size => 40}) %] </td> </tr> [% END %] <form> <table width="50%"> [% FOREACH e = elements %] [% PROCESS row label = e.label name = e.name %] [% END %] </table> [% CGI.submit('update') %] </form>

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)