Re: form variables

From: Date: Tue, 10 Sep 2002 04:25:13 +0000
Subject: Re: form variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115811@lists.php.net to get a copy of this message
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?


« previous php.general (#115811) next »