deshi2003
03-12-2009, 10:57 AM
in my blog site when user write a blog they can write in text area as their will
that is they can give space, new line any other alignment. but when i post the blog from database in my website i can maintain user newline useng nl2br() function,but the alignment that is apace is lost.every line is started from begining. how could i solve this problem. i am giving here an example.(i used html textarea tag)
user input:
hi, i wanna do something with you
how about you.do you want to share some thing withme
mysite output:
hi, i wanna do something with you .
how about you.do you want to share some thing withme.
that is they can give space, new line any other alignment. but when i post the blog from database in my website i can maintain user newline useng nl2br() function,but the alignment that is apace is lost.every line is started from begining. how could i solve this problem. i am giving here an example.(i used html textarea tag)
user input:
hi, i wanna do something with you
how about you.do you want to share some thing withme
mysite output:
hi, i wanna do something with you .
how about you.do you want to share some thing withme.