s|(<input type=checkbox)(.*)( name=)(\w+)|$1$2$3$4 $check{$4}|ig;
My problem is that i'm writing everything to a tab delimited file (file.xls). When the checkbox isn't checked it's blank and doesn't write anything to the file, but I want it to write something like "no data" so that everything lines up. Anyway, i need to understand the above code. Like why is $check{$_} being set to "CHECKED" everytime? Oh, checkbox names must be c_xxxxxforeach ($query->param) { $in{$_} = $query->param($_); if ($_=~/^c_/) { $check{$_}="CHECKED" print OUT "$in{$_}\t"; }
In reply to checkbox help by djbryson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |