I'd love to know how to crack this one!
I'm reading data from a form, and storing in a MySQL DB. The form includes a textarea. The textarea field goes straight into the database. I then use nl2br() to format the field when displayed.
Input from some users has extra line breaks at the width of the textarea box.
I want to preserve the hard line breaks but get rid of the soft textarea ones.
Appreciate any help ...
Nick.