in reply to Problems printing to browser
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problems printing to browser
by sulfericacid (Deacon) on Nov 29, 2002 at 11:18 UTC | |
by tachyon (Chancellor) on Nov 30, 2002 at 02:10 UTC |