On Fri, 29 Oct 2004, Buddy Burden wrote:
> Well, I don't know that it's particularly more Perl-ish or more TT2, but
> I always do it this way:
>
> <input type="radio" name="GETS_REPORT" value="F"
> [%- 'CHECKED' IF gets_report == 'F' %]/>No
> <input type="radio" name="GETS_REPORT" value="T"
> [%- 'CHECKED' IF gets_report == 'T' %]/>Yes
Is 'CHECKED' xhtml compliant? I probably need to go back to the books
and standards but I thought it had to checked="checked".
> Basically the same as yours, but perhaps a bit more compact. Also, I
> always try to use lower case varnames to help distinguish from (and
> avoid potential conflicts with) TT2 keywords. (Actually, I would
> probably use a checkbox here rather than radio buttons, but perhaps
> that's just personal preference.)
Thinking on it, outside my little box, you're right. A simple checkbox
would work. I think in the pseudo-design stage some of what are now
true/false fields were going to have multiple values instead. Hence
psuedo-design. (More properly rock-throwing-design: design something and
let others throw rocks at it -- apply gum and bailing wire with a little
spot painting to make it look good.)
It would sure clean up my coding issues. Thanks.
Rod
--
"Open Source Software - You usually get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates