Gunnar:
I have attached the CGI script: weekly.pl. The subroutine save_weekly()
captures the 'executive summary' and 'details' values entered into the textarea via
$summary = param('executive summary') and $details = param('details').
For Debug purposes, I print $summary and $detail. I may make this a review
feature. Anyway, none of the text displays without any carriage returns.
I am beginning to suspect this is due to HTML not recognizing these
characters in the variables. Hmmmm.
weekly.pl
Description: Binary data
Robert Page
On Sep 6, 2004, at 7:35 PM, Gunnar Hjalmarsson wrote:
Robert Page IV wrote:I am trying to write a simple weekly entry CGI script and I am trying to capture a the string returned from a textarea, assign the value to either a variable or array and output it to a web page with print or printf or sprintf/print. When I do this, apparently carriage returns are either not captured in as part of the value returned from the textarea value, or I am not handling the value returned correctly to recognize carriage returns. Does anyone have any recommendations as to how I can solve this issue?
This discussion in comp.lang.perl.misc may be helpful:
http://groups.google.com/groups? threadm=1a1fc02.0408171946.2abd7dca%40posting.google.com
Otherwise, post a short but complete program using Perl that illustrates the problem you tried to explain in English...
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
Robert C. Page IV
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>