rgbcof
asked on
perl, cgi to read whether a check box value if it is checked
<INPUT TYPE="checkbox" NAME="snif0" checked="yes" >emA
<INPUT TYPE="checkbox" NAME="snif1" checked="no" >emB
<INPUT TYPE="checkbox" NAME="snif2" checked="no" >emC
<INPUT TYPE="checkbox" NAME="snif3" checked="yes" >emD
If the boxes are checked then add to array @sniffList. So @snifList should have emA and emD?
<INPUT TYPE="checkbox" NAME="snif1" checked="no" >emB
<INPUT TYPE="checkbox" NAME="snif2" checked="no" >emC
<INPUT TYPE="checkbox" NAME="snif3" checked="yes" >emD
If the boxes are checked then add to array @sniffList. So @snifList should have emA and emD?
ASKER
Got an error:
Undefined subroutine &main::param called at /var/www/cgi-bin/p ....
Undefined subroutine &main::param called at /var/www/cgi-bin/p ....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Very cool.
Here is some snippets of how I do it.
Hope it helps ^_^
Open in new window