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
]
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
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
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
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