Page 1 of 1

Formating input from multi-line text field

Posted: Fri Aug 29, 2003 8:08 am
by JayBird
i have a multi-line text field in a form for people to enter their address detials.

When someone enter:

Some street
Some place
Some where

when the form is submitted and i print the address to the broswer, it is display all on one line. How can i keep the line breaks?

Cheerz

Mark

Posted: Fri Aug 29, 2003 8:10 am
by qads
after the form has been submitted

Code: Select all

$address = nl2br($_POST[address]);

Posted: Fri Aug 29, 2003 8:16 am
by JayBird
cheerz buddy

Mark