When I print the value of checkbox it prints blank instead of on, and thats why pearl code below always goes into else statement. What should I do so that I can check if the checkbox is marked or not?????? Thanks a lot!!!!
if ($field{'checkbox'}) { # checkbox was checked $chkbutton1 = "Yes send me news letter"; } else { # checkbox left unchecked $chkbutton1 = "No don't send me news letter"; }
In reply to How do I check if checkbox in the form was checked or not? by dima
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |