Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: (jeffa) 3Re: Converting large numbers of checkboxes to small number of params

by tilly (Archbishop)
on Jul 10, 2003 at 03:48 UTC ( #272883=note: print w/replies, xml ) Need Help??


in reply to (jeffa) 3Re: Converting large numbers of checkboxes to small number of params
in thread Converting large numbers of checkboxes to small number of params

More often than not I believe that CGI's html-generating methods are not a good approach.

Of course I also don't have a single answer that I would suggest in place, there are many ways of generating HTML and they each are appropriate in different places. For more detailed thinking on the factors that I consider, please see Re (tilly) 6: Code Critique.

  • Comment on Re: (jeffa) 3Re: Converting large numbers of checkboxes to small number of params

Replies are listed 'Best First'.
(jeffa) 5Re: Converting large numbers of checkboxes to small number of params
by jeffa (Bishop) on Jul 10, 2003 at 05:18 UTC
    You are absolutely correct. I chose to rewrite the original using nothing but CGI.pm to demonstrate that it can be done. I do that from time to time just to keep my CGI.pm skills sharp - while i rarely use CGI.pm in production, i use it all the time here at the Monastery.

    If you look carefully, you will see that checkboxes are each embedded inside their own table cell ... this makes using CGI.pm's checkbox_group() next to impossible. I'll bet a dollar or two that this was the motivation for checkbox(). This is so much easier to handle with HTML::Template, IMHO:

    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)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://272883]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2022-10-06 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?