cgi/Perl ... Removing literal CR's from textarea form submission.

by "Peter Newton" <c-newton(at)ihug.co.nz>

 Date:  Thu, 22 Jun 2000 13:39:42 +1200
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Hello all,

Thanks for all the good tips on flash4 detection, After all
that I went to download the program and it crashes with that
"This program has performed an illegal operation" error
message. No one seems to want to assist so I'll have to
shelve it for the moment.

My problem now is that I'm receiving forms from my website
which contains  textarea inputs, however if anyone puts in a
literal CR in this field it mucks up my perl program which
filters the forms. One solution is to convert any literal
CR's into BR tags but I'm having trouble trying to detect a
literal CR. using  tr/ / / or s/ / /g.
Can anyone help.?

Many Thanks
Peter Newton



-------------------------------------------------
Whats on in New Zealand?
go to http://nzsc.co.nz/

Who is on the net NEAR YOU?
go to http://nzsc.co.nz/
-------------------------------------------------

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA