Actually, I am using strict in my code (though not warnings) -- I just used a small slice of a larger program, since I didn't want to inundate everyone with a bunch of superfluous code.
While what you've suggested above is very handy -- it does a nice job of cleaning up both my code and memory -- it totally misses the point of what I was asking. The heart of my problem is that, when I have HTML tags in a radio button label, they're spit out inside of <label> tags such that web browsers see them as literal text, not actual HTML, and they don't get properly rendered. For example, instead of getting the string "Year:" followed by a select box on a new line, I'm getting:
Year:<br><select name="year_year" tabindex="1"> <option selected="sele
+cted" value="2005">2005</option> <option value="2006">2006</option> <
+option value="2007">2007</option> <option value="2008">2008</option>
+<option value="2009">2009</option> <option value="2010">2010</option>
+ </select>
Which is distinctly not helpful. Looking at the page source, I'm seeing:
<label><input type="radio" name="date_selection" value="year" tabindex
+="7" />Year:<br><select name="year_year" tabindex=
+"1"> <option selected="selected" value=
+"2005">2005</option> <option value="20
+06">2006</option> <option value="2007"
+>2007</option> <option value="2008">2008
+</option> <option value="2009">2009</opt
+ion> <option value="2010">2010</option>&
+#10;</select></label>
That said, does anyone know how to make the HTML in my label actually render as such, and not output directly to the screen?
Thanks,
Alex Kirk
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.