Next Program Repair Shop 280

Families of Variables

     if ($FORM{'h01'}) {$checked01 = " CHECKED "}
     ...
     if ($FORM{'h06'}) {$checked06 = " CHECKED "}
     for $i (1..6) {
              $checked[$i] = 'CHECKED' if $FORM{"h0$i"};
     }
        <input type=checkbox value=' CHECKED '>
        sub checked { $FORM{$_[0]} ? ' CHECKED ' : '' }


Next Copyright © 2002 M. J. Dominus