Hi,
I have a user form which contains a large text area which when submitted stores the text written in the text area as a blob field within my database.
I have noticed that the only to save line breaks is if the user enters <br> tags after every line.
How can I solve this problem as I don't want the user to have to do this.
you call:
$myfield=nl2br($myfield);
before inserting into the database.
or, if you need to edit later and don't want <br> to keep multiplying use this:
$myfield=preg_replace('/[\r\n]+/ms','<br>',$myfield);
Thank you again Alexu', that's twice today you've helped me out.