As for the formatting, I don't know if you'd find something more like this much easier to read:
#!/usr/bin/perl -w use strict; use CGI::Pretty qw(:all); print header(), start_html('foo'), start_form(), table( Tr([ td([ 'Email Address:', textfield('usermail') ]), td([ 'Author:', textfield('author') ]), td([ 'Distributor:', textfield('distributor') ]), td([ 'Copyright:', textfield('copyright') ]), td([ 'Abstract:', textfield('abstract') ]), td([ 'Keywords:', textarea({ name => 'keywords', rows => 10, cols => 50 }) ]), td([ 'Description:', textarea({ name =>'description', rows => 10, cols => 50 }) ]), td([ 'Robots:', popup_menu({ name => 'robots', values => [ '', 'index', 'noindex', 'follow', 'nofollow' ] }) ]), td([ 'Distribution:', popup_menu({ name => 'distribution', values => [ '', 'local', 'global' ] }) ]), td([ 'Language:', popup_menu({ name => 'language', values => [ '', 'EN', 'EN-GB', 'EN-US', ' +ES', 'ES-ES', 'FR', 'IT', 'JA', 'K +O', 'DE' ] }) ]), td([ 'Rating:', popup_menu({ name => 'rating', values => [ '', 'kids', 'general', 'mature', 'restricted' ] }) ]), '', 'local', 'global' ] }) ]), td([ 'Language:', popup_menu({ name => 'language', values => [ '', 'EN', 'EN-GB', 'EN-US', ' +ES', 'ES-ES', 'FR', 'IT', 'JA', 'K +O', 'DE' ] }) ]), td([ 'Rating:', popup_menu({ name => 'rating', values => [ '', 'kids', 'general', 'mature', 'restricted' ] }) ]), th({ colspan => 2, valign => 'bottom' }, submit() ) ]) ), end_form(), hr();
If the above content is missing any vital points or you feel that any of the information is misleading, incorrect or irrelevant, please feel free to downvote the post. At the same time, please reply to this node or /msg me to inform me as to what is wrong with the post, so that I may update the node to the best of my ability.
In reply to Re: CGI Tables, yippie!!
by Coruscate
in thread CGI Tables, yippie!!
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |