[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] Dealing with the <TEXTAREA> in a form via Post / Cgi



Hi I wonder if there's anyone who knows the best way to deal with the 
formtag <textarea> (see example below).
I would like the input to keep it's format and be able to print it via 
HTML outputscript. 
 

----- TEXT AREA TAG -----
<textarea name="INFO" cols="50" rows="4" wrap="PHYSICAL"></textarea>

-------- Print tag in CGI/Perl script -----------
print qq!<PRE>$in{'INFO'}</PRE>!;

Is this the best way to go about it ? 
I tried And now I get very long lines sometimes when the users does'nt
push the return key and just prints a long line of text.
Is there a way to force linebreaks but keep them if theyre already there ?

Yours sincerely 
Jimmy Lantz
Sweden.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org