in reply to Re^3: html checkbox and perl cgi
in thread html checkbox and perl cgi
Parameters have two parts, a name and a value. To get the value of a parameter you query its name: $query->param('name') will return the value. With a checkbox, the parameter will only have a value if it is checked, if it is not checked the value will be empty. The value 'on' is not really an issue, but you want your variable $TB to have the value 'TB' not 'on'.