batmanor has asked for the wisdom of the Perl Monks concerning the following question:
I started with just one field, {'Comments'} to catch unwanted html code and with your help it worked. Now I want to catch the code in the other fields as well, {'addr'} {'name'} so I came up with the following:
However, no matter what I write with or without html I get sent to the sub routine &html_message. What am I doing wrong?# If http or <a href= tags are present abort the message if ($FORM {'Comments'} || $FORM{'addr'} || $FORM{'name'} =~m/http|h +tml|HTML|A HREF|a href/i) { &html_message; }
Thanks in advance, David
Thank you all:chargrill hipowls ikegami lodin NetWallah
for your help!
batmanor
Back to
Seekers of Perl Wisdom