I have a similar problem, but in a text area.
I have some code, which I want to add into the text box, and then when the user click on the link,the text is displayd already:
$text = "\r\n\r\n\r\nPage generated by ......";
print "<TEXTAREA NAME=message COLS=40 ROWS=10 CLASS=formElement ID=message>$text</TEXTAREA>";
What this does is, create a text field, with some text already in the textfield, with 3 spaces for the user to type his own message.
This then gets emailed, as an HTML message. The problem is, it doesn't add those spaces into the email, nor any carrage returns, when I hit the enter button inside the textarea.
What do I need todo to convert the \n and \r and carriage returns to <BR>?