PDA

View Full Version : textarea tag



rowantrimmer
Feb 13th, 2010, 01:25 PM
Hello,

I have bee hard coding html for many years now but I have an issue with textarea tags....

I have a form with a number of textarea tags and when the form is submitted I use php and mysql to write away the data. - No problem with that at all.

My issue is that if I press the return key when entering data into the textarea that carriage return is not actually written away with the rest of the text. I can't really expect the user to enter <br> into the box as they are typing away so is there any solution?

Kind Regards

Rowan

VIPStephan
Feb 13th, 2010, 01:29 PM
nl2br (http://php.net/manual/en/function.nl2br.php)

Maybe this is of help: http://answers.yahoo.com/question/index?qid=20070817235843AAX930v

rowantrimmer
Feb 13th, 2010, 01:41 PM
this link doesn't work????

votter
Feb 13th, 2010, 02:13 PM
Both of those links work.