On 08/03/2012 03:04 PM, Tedd Sperling wrote: > > On Aug 3, 2012, at 1:44 PM, John <j...@coffeeonmars.com> wrote: > >> In creating a form with a pull-down menu, and naming the various entries ( >> <select> shown below), >> are there best practices for the number of characters in value="name" ? >> >> The tutorial I followed went with 2- and 3-character names. Can I use 4, 5, >> 6 characters if that will help me to keep everything straight? >> >> Thanks! >> >> John >> >> <select> >> <option value="app">Apples</option> >> <option value="ora">Oranges</option> >> <option value="lem">Lemons</option> >> </select> > John: > > I don't really see the question/problem here. Do you think by keeping the > string values the same length that you accomplish something? Well, you don't. > The "value" is simply what is reported after the user picks their selected > and submits the form, nothing more. > > Here's a link to a demonstration of how to get what the user picked via a > selection option control: > > http://sperling.com/php/select/ > > As you can see, the length of the value string is not relevant, nor is this > css related. > > Cheers, > > tedd > > > _____________________ > t...@sperling.com > http://sperling.com > > ______________________________________________________________________ > css-discuss [css-d@lists.css-discuss.org] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ I'm an old programmer who believes in one abbreviation: 'no' for number. That's it. The next programmer will thank you and you'll thank yourself, too; six months later when you have to revise the code. When "best practices" sacrifice readibiity, go with what works. Having said that, dig into "best practices" enough to know whether you're breaking any of its rules and you may pick up a few pointers.
Ted ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/