CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [andy7t] Stop Lines in Textarea: Edit Log



KevinR
Veteran


Sep 16, 2003, 12:45 PM


Views: 474
Re: [andy7t] Stop Lines in Textarea

this may very from browser to browser, but give this a try:

<textarea name="input" wrap="soft">

if that does not work then you may need to parse out the linefeeds/carraige returns sent with the textarea form submission, something like:


Code
   

if ($in{
'input'}) {
$in{
'input'} =~ s/\r\n//g;
$in{
'input'} =~ s/\n//g;
}





or you can do both. Make sure to add a newline to the end of the string in your print statement if you parse out \r\n's from the form data.
-------------------------------------------------


(This post was edited by KevinR on Sep 16, 2003, 12:47 PM)


Edit Log:
Post edited by KevinR (Veteran) on Sep 16, 2003, 12:47 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives