The problem is probably that your script dies due to the typo here when you call a function on an undefined value
print my $cgi->escapeHTML( $tags); # should be $query not $cgi print $query->escapeHTML( $tags );
Your CGI object is called $query not $cgi. Checking the error logs would have revealed this and avoided your frustration.... The script compiles OK because this is a runtime error.
If this fails then check what the script is actually getting from your form:
use CGI; my $query = CGI->new; print $query->header; %form = $query->Vars; use Data::Dumper; print $query->escapeHTML(Dumper(\%form));
If that is not usefull see the CGI Help Guide I wrote.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Problems printing to browser
by tachyon
in thread Problems printing to browser
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |