I am attempting a task using multiple checkboxes that each have a db field.
If a user checks one or more of the available boxes, all the result shows in a single table cell. I am getting a syntax error that I haven't been able to figure out.
Here's my code:
<tr>
<td colspan="2"><p>|; # to close off any previous print qq| statement
if ($rec{'Interest_fresh'})
print qq|<$font>$rec{'Interest_fresh'}</font>|
elseif ($rec{'Interest_salt'})
print qq|<$font>$rec{'Interest_salt'}</font>|
elseif ($rec{'Interest_offshore'})
print qq|<$font>$rec{'Interest_offshore'</font>|
elseif ($rec{'Interest_fly'})
print qq|<$font>$rec{'Interest_fly'}</font>|
</td></tr>
This board is treating break tags a little weird. There should be a break tag after the first 3 </font> tags and just before first 3 |s.
Could one of you perl dudes or dudettes point out the errors in my feeble attempts?
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/
If a user checks one or more of the available boxes, all the result shows in a single table cell. I am getting a syntax error that I haven't been able to figure out.
Here's my code:
<tr>
<td colspan="2"><p>|; # to close off any previous print qq| statement
if ($rec{'Interest_fresh'})
print qq|<$font>$rec{'Interest_fresh'}</font>|
elseif ($rec{'Interest_salt'})
print qq|<$font>$rec{'Interest_salt'}</font>|
elseif ($rec{'Interest_offshore'})
print qq|<$font>$rec{'Interest_offshore'</font>|
elseif ($rec{'Interest_fly'})
print qq|<$font>$rec{'Interest_fly'}</font>|
</td></tr>
This board is treating break tags a little weird. There should be a break tag after the first 3 </font> tags and just before first 3 |s.
Could one of you perl dudes or dudettes point out the errors in my feeble attempts?
Will
Webmaster
FishHoo! Search Index for Fishermen
http://www.fishhoo.com/