Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- Modifying NMS FormMail to deny submissions with URL links


rocknbil - 3:31 pm on May 2, 2012 (gmt 0)


Hmm OK then . . . do you have

for (some condition) {

&send_main_email_fields;

}

Maybe it's being called inside a loop from elsewhere? If so you'd need to return a value, like

for (some condition) {

$s = &send_main_email_fields;

if ($s==1) {
## output and exit here
}

}

sub send_main_email_fields {
## Same code, remove printout and exit, add
return $spam;
}

I don't use off the shelf scripts so am never familiar with them.


Thread source:: http://www.webmasterworld.com/perl/4447902.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com