bug report update
Colin Allen
colin at snaefell.tamu.edu
Wed Feb 10 21:45:18 PST 1999
Thanks to Ken's suggestion I was able to work around the difference in
behavior in OW and those other browsers using the code shown below. This
script is running at http://grimpeur.tamu.edu/cgi-bin/hiddenfix.cgi
Cheers,
---
Colin Allen
http://snaefell.tamu.edu/~colin/
#!perl
use CGI;
$cgi = new CGI;
my $text = $cgi->param('text');
$text =~ s/\r//g; # get rid of unwanted CRs
my $hiddentext = $cgi->param('hiddentext');
$hiddentext =~ s/\r//g; # get rid of unwanted CRs
$cgi->delete_all;
print
$cgi->header,
$cgi->start_html;
print "<b>Textarea version:</b><pre>$text</pre>" if $text;
print "<b>Hidden parameter:</b><pre>$hiddentext</pre>" if $hiddentext;
$text = "line 1\nline 2\nline 3\n" unless $text;
print
$cgi->startform(),
$cgi->textarea('text',$text,10,50);
$text =~ s/\n/ /g; # this is for OmniWeb's benefit
print
$cgi->hidden('hiddentext',$text),
"<br>",
$cgi->submit(-value=>'Reload'),
$cgi->endform(),
$cgi->end_html();
More information about the OmniWeb-l
mailing list