empty lines in db, not in html
Posted: Sun Dec 07, 2008 1:25 pm
hey everybody
so in sending info to a db, with line breaks, from a textarea were the user presses 'enter'
the line breaks are saved in the db without any coding like so:
row 1
row 2
when i retrieve it to html it goes
row 1 row 2
im stripping all html and php tags, so i cant try and use html tags i suppose so how could i go about and maintain the format once rendered on html?
thanks
so in sending info to a db, with line breaks, from a textarea were the user presses 'enter'
the line breaks are saved in the db without any coding like so:
row 1
row 2
when i retrieve it to html it goes
row 1 row 2
im stripping all html and php tags, so i cant try and use html tags i suppose so how could i go about and maintain the format once rendered on html?
thanks