PDA

View Full Version : How do you keep line breaks?


kau
08-07-2007, 09:11 PM
I have a UserCP option set as address so they enter it freeform and can enter it like this:

PO BOX 891234
UDGE, UT 47121

When I call the variable using a 3rd party application (one I wrote) and echo the variable it displays it like this

PO BOX 891234 UDGE, UT 47121

How do I make it echo using the line breaks like it's in the DB?

In the DB it shows like this, I need it to echo like this on the page but doing just $echo variable doesn't break it:

+------------------------------+
| field35 |
+------------------------------+
| PO Box 4125
Odgen, UT 12516 |
+------------------------------+