On Fri, 8 Jun 2001, Hasanuddin Tamir <[EMAIL PROTECTED]> wrote,
> On Fri, 8 Jun 2001, Aaron Craig <[EMAIL PROTECTED]> wrote,
>
> > At 11:42 07.06.2001 -0400, you wrote:
> > >I have a problem with an HTML form. I am collecting in put from a html
> > >textarea box, then displaying it to the scream on the next page. the
> > >problem is that the whole string is being displayed all on one line I want
> > >no more than 50 characters to display on each line. And only if the string
> > >is more than 50 characters. Does anyone have a solution?
>
> In perl way,
Ah, bugs!
> #!/usr/bin/perl -w
>
> use strict;
> use CGI ':standard';
>
> print
> header,
> start_html('showing textbox'),
> h1('Textbox'),
> start_form,
> textarea(
> -name => 'textbox',
> -cols => 50,
> -rows => 4,
> -wrap => 'physical',
> );
^ should be , here
> br,
> submit,
> end_form;
And it's better to close the page,
end_form, # replaces end_form;
end_html;
s::a::n
--
http://www.trabas.com