The text field only has newlines (\n) not breaks.
For starters, in the text area tag, you need wrap="virtual":
<TEXTAREA name="mailingAddress" wrap="virtual" rows="6"
cols="40"></TEXTAREA>
Then instead of
print "$mailingAddress<br>";
try
print nl2br($mailingAddress)."<br>";
... which converts all new lines (\n) into breaks (<br />)
Regards,
Justin
on 10/09/02 2:21 PM, Hans Prins ([EMAIL PROTECTED]) 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?
>
> Thanks in advance :-)
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php