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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


Sep 16, 2003, 12:45 PM

Views: 538
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:


if ($in{
'input'}) {
'input'} =~ s/\r\n//g;
'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