BestFitSolutions
Technical User
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 "ADVERT25=$contents{'bcardadvertise25'}\n";
}
if ($contents{'qtrpageadvertise50'} != "") {
print MAIL "ADVERT50=$contents{'qtrpageadvertise50'}\n";
}
if ($contents{'halfpageadvertise75'} != "") {
print MAIL "ADVERT75=$contents{'halfpageadvertise75'}\n";
}
if ($contents{'Fullpageadvertise125'} != "") {
print MAIL "ADVERT125=$contents{'Fullpageadvertise125'}\n";
}
Can anyone help with this?
the website 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 "ADVERT25=$contents{'bcardadvertise25'}\n";
}
if ($contents{'qtrpageadvertise50'} != "") {
print MAIL "ADVERT50=$contents{'qtrpageadvertise50'}\n";
}
if ($contents{'halfpageadvertise75'} != "") {
print MAIL "ADVERT75=$contents{'halfpageadvertise75'}\n";
}
if ($contents{'Fullpageadvertise125'} != "") {
print MAIL "ADVERT125=$contents{'Fullpageadvertise125'}\n";
}
Can anyone help with this?
the website is: