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
Formating input from multi-line text field
Moderator: General Moderators
after the form has been submitted
Code: Select all
$address = nl2br($_POST[address]);
Last edited by qads on Fri Aug 29, 2003 8:21 am, edited 1 time in total.