Hello
Not sure if this is a PHP query or not but I suspect PHP is the answer...
I have a beautiful site with a handy news-updating textarea. The idea is that the user can type some article, which will be stored in a database to be regurgitated to any other users.
The problem is that the way textareas handle line breaks is not the way HTML does. Consequently, any linebreaks the author has entered (via the 'return' key) to the textarea is disregarded on the HTML, creating an ugly mass of text.
Since I'm trying to make this site as user-friendly as possible, I'm avoiding instructions that say to use "<br />" as the line break. What I want is for the textarea's linebreaks to be converted to <br />s. I would use a simple strreplace() function but I don't know what the character for a line break is, if there even is one...
Any ideas?
Also, a CSS question: normally textareas are sized by column and row counts. Is there a way to make them sized like everything else, ie, a {width: 50%;} sort of thing?