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

RE: OT: Re: Variable variable names

by cei (Monk)
on Oct 24, 2000 at 04:47 UTC ( [id://38056]=note: print w/replies, xml ) Need Help??


in reply to OT: Re: Variable variable names
in thread Variable variable names

For me, I think in the following way: if a question has only one answer, with few choices, a Radio Button is best. If you only want one item, but the list of choices may grow over time, a pull-down may be best. If you want a bit of info that is in no way dependent on other info, checkboxes are the answer.

Some things make themselves more obvious. Things like multiple choice questions, with potentially long answers, do the answers in HTML text and put radio buttons next to them. Long questions with short answers, pull-down menues. I don't think I've ever needed to use a multiple select in anything I have created. That data could always be represented in other methods.

As far as "prettying up" the form elements, in my current project, I assign some variables as "selected" or "checked" and then include them in the HTML form element. That way I can maintain state between calls.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found