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? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php