in reply to Optional FONT tag
my $color = ($state==2) ? "#000000" : "#FF0000"; ##... qq!<FONT COLOR="$color">"First Name"</FONT>!
Some may point out that the use of the FONT tag is discouraged. If you do use it, make sure you quote all values, such as the color above. Just OWTDI, there are other better, more expandable ones. Can we assume that different values of state need different sections of the form to be "red-highlighted"?
This is also a good job for javascript. Use javascript to catch most people, and have perl as a backup for those people who have js turned off or thos who have circumvented it.
|
|---|