Re: form variables
| From: | Hans Prins | Date: | Tue, 10 Sep 2002 04:30:23 +0000 |
| Subject: | Re: form variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115815@lists.php.net to get a copy of this message | ||
thank you very much :-)
"Chris Shiflett" <shiflett@php.net> schreef in bericht
news:3D7D7429.4030201@php.net...
> I am guessing you mean the input is a textarea.
>
> At any rate, I believe what you want is nl2br()
>
> Happy hacking.
>
> Chris
>
> Hans Prins wrote:
>
> >Hello,
> >
> >I have a form field of the type "scrolling text box" it lets users input
a
> >multiline string. I then pass this string as a variable to a php document
> >that prints this string to the screen:
> >
> >print "$mailingAddress<br>";
> >
> >however..... this outputs it all in one line.
> >Does anyone have an idea as to how I can print this to the screen in the
> >same way the user has input the info: in multiple lines?
> >
>