I’m using a textarea for some data entry. The problem is that i have something like this
<textarea name='description'></textarea>
on the html page
On the php page:
mysql_query("INSERT INTO table(description) values('".$_POST['description."') WHERE id = '2'";
The problem is that I’m loosing formatting. like if enter in the textbox:
line1 is here
l
i
n
e
2
In the database it will be stored like
line1 is hereline2
How do I keep the formatting (basically just the break lines)?
Thanks!