From: Brad Fike <[EMAIL PROTECTED]>
> I have written a small cgi script that allows my users to submit some
> text to a db. everything work well except that it seems to be doubling
> their return keys. Each time they modify their entry the lines get one
> return key further apart. I read this in one of the Oreilly books...
>
> "Upon submission of the form, the browser collects all the lines of
> text, each separated by "%0D%0A" (carriage return/line feed)"
>
> how can I convert the "%0D%0A" to just the regular "\n" character? I
> cannot use the CGI.pm module.
Assuming you have the data decoded :
$data =~ tr/\x0D//d;
For parsing the query and decoding data you definitely SHOULD use
CGI.pm. (Or maybe CGI::Deurl.pm? :-)
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]