I use an if statement in my html.pl to decide whether or not a certain form was filled out. For example:
print qq|<img border="0" src="http://www.movielocity.com/images/blackline.gif" width="144" height="1">
<a href="http://www.allposters.com/link/redirect.asp?
Category=Category&Search=$rec{'allposter'}&AID=84835">
Purchase the poster from Allposters.com</a>|;
}It is supposed to see if there is any data in the allposter field and then display it if there is and disregard if there isn't any data. Problem is, the database keeps entering a blank space in this field, so it thinks that something is there when there isn't.
Is there a way in the if statement that I can require it to have 3 or more characters to display? Or have it not display anything if only a space is existent?
I hope this make sense. If not, reply and I'll get an e-mail and clarify it.
=Blake Kunisch=
blake@outermost.net
http://www.outermost.net
Code:
if ($rec{'allposter'}) { print qq|<img border="0" src="http://www.movielocity.com/images/blackline.gif" width="144" height="1">
<a href="http://www.allposters.com/link/redirect.asp?
Category=Category&Search=$rec{'allposter'}&AID=84835">
Purchase the poster from Allposters.com</a>|;
}
Is there a way in the if statement that I can require it to have 3 or more characters to display? Or have it not display anything if only a space is existent?
I hope this make sense. If not, reply and I'll get an e-mail and clarify it.
=Blake Kunisch=
blake@outermost.net
http://www.outermost.net