Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You should be checking document.form.box1.checked, not document.form.box1.value. The latter is the value attribute, the value that the checkbox would use to submit, when checked. It's the same attribute as in HTML:
    <input type="checkbox" name="box2" value="yes">

    For this snippet, document.form.box2.value will be "yes".

  • It works for me if I change:

        if (document.form.boxn.value == 'on') {
    to:
        if (document.form.boxn.checked) {
    As to whether this is appropriate behaviour, I have no idea.

    Btw, I had to remove all those <? ?>. They were giving me all kinds of odd errors ;)

    --
    --simonflk