I have done that and found that it always prints as "ON" regardless of whether the checkbox is checked or not checked.
I'm tring to find a way to print it as " " if it is not checked and "On" if it is checked.
When I used:
if ($contents{'bcardadvertise25'}='ON') {
print MAIL...
I am not try to determine if there is a text string. It is either a checked or un-checked box.
If the box is checked, then it should show the field. If it is un-checked then it should dispaly nothing.
I have tried both of the expresions above and neither dispalys any out put what so ever...
I have a form that post all data correctly except the "checked" boxes. What I am looking for is:
If the box is checked, then post only checked box, if it is not checked then post nothing or the fact that is is empty.
Here is the code:
if ($contents{'bcardadvertise25'} != "") {
print MAIL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.