in reply to blank value from text box

Perhaps a bit off-topic as far as your question is concerned, but why do you use these regexes s/([;<>\*\|`\$!#\(\)\[\]\{\}:'"]@)/\\$1/g;?

Is it to escape "unsafe" HTML codes? If so, perhaps you can have a look at the escapeHTML function of the CGI-module.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re: Re: blank value from text box
by jwlarson3rd (Acolyte) on Feb 07, 2004 at 21:59 UTC
    Thanks I tried that got this Can't locate autoEscape.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at insert.cgi line 7. when I did this
    use autoEscape();
    john larson
      escapeHTML is a function of the CGI-module. So if you did a use CGI; in your script, you should have the escapeHTML-function available.

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law