Hi,
if line-breaks are gone when writing it to a html-document, use the nl2br-command to replace \n to <br>.
if your php has the gpc-magic-quotes enabled, posted data should be automatically quoted. I.E. that also linebrakes will be written correctly to the db. Otherwise use the addslashes-Command.
Hope, that was helpful.
Sven.