[PHP-DB] Form TextArea Formatting

2002-12-09 Thread Keith Spiller
Hello, I've created a web form that includes a textarea input box called MessageText. The data from this form will be inserted into a mysql table. My problem is that the form users will be inserting formatted text into this textarea and I need to be able to transfer the formatting as well as the

Re: [PHP-DB] Form TextArea Formatting

2002-12-09 Thread Ignatius Reilly
] To: [EMAIL PROTECTED] Sent: Monday, December 09, 2002 12:01 PM Subject: [PHP-DB] Form TextArea Formatting Hello, I've created a web form that includes a textarea input box called MessageText. The data from this form will be inserted into a mysql table. My problem is that the form users

RE: [PHP-DB] Form TextArea Formatting

2002-12-09 Thread John W. Holmes
I've created a web form that includes a textarea input box called MessageText. The data from this form will be inserted into a mysql table. My problem is that the form users will be inserting formatted text into this textarea and I need to be able to transfer the formatting as well as the

Re: [PHP-DB] Form TextArea Formatting

2002-12-09 Thread Alex Francis
You would be easier reformatting when you take it out of the database. After getting your variable representing the text in the text box do this: $variable = nl2br($variable); Then when you display your variable the all your original new lines are retrieved. John W. Holmes [EMAIL PROTECTED] wrote

Re: [PHP-DB] Form TextArea Formatting

2002-12-09 Thread Keith Spiller
the Textarea, but it is also later displayed back in the Textarea and these to lines work perfectly for new lines, indents and spaces. Larentium - Original Message - From: Keith Spiller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 09, 2002 4:01 AM Subject: [PHP-DB] Form TextArea