Problem 1: Have you tried changing the input type to something like "hidden" or "checkbox"? That would get rid of the radio button. If you want to change it to hidden, remember to get rid of the "selected" and if you change it to checkbox, change "selected" to "checked".

Just a side note. You may be able trick the program into allowing you play around with the font sizes you can choose. If this is the case, you may be able to use a drop down list instead:

<select name="DESCSIZE"> <option value="<font size=3>">3</option> <option value="<font size=4>" selected>4</option> </select>

Problem #2: Change $title to $desc. Or $title - $desc if you want both the title and the code. Unfortunately, I have the inkling that the author of this code may insert your font tag from problem one into the title. Try it and see.

Problem #3: This program makes me nervous. There's something hinky going on here. Whoever wrote this program may be rolling their own templating system (see A quick and dirty template system for more info). It's also trusting user input (by taking the HTML element font verbatim from the user and most likely inserting directly into the html using the homegrown template system which is a security hole. I'm not sure if they're validating the input, but I doubt it.

I sure hope you didn't pay a lot for this program. I haven't seen the code, but I have a funny feeling that it's full of security holes. And those holes may cost you money.


In reply to Re: OT: values not working. by BurnOut
in thread OT: values not working. by fred1010

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.