View Single Post
Old 08-22-2006, 12:50 PM  
Big John
Confirmed User
 
Join Date: May 2006
Location: Never never land
Posts: 470
A Quick PHP Question...

I need to combine some strings and send them to a page with a multi-line form field in it (hope that makes sense). In itself this is simple and so's the problem...

I want to insert a line break betweek each bit of data (it's an address field and I want each piece on its own line). How to do it? Obviously being an form field <br \> won't work so what do I use? Is there an escape character?

for example I want:

$ addressfield = $ street . (new line) . $ city . (newline) etc

I figure someone here must know how to do something so simple. It's such a daft thing to not know how to do that finding how is proving impossible.
__________________
Big John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote