The function, nl2br() swaps end-line characters for HTML <br> tags.
This is usually adequate for this situation.  Though the default
end-line character (\n or \r) can differ between operating systems, I
have yet to experience a major problem.  -Kevin

-----Original Message-----
From: Dani [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 22, 2002 3:57 PM
Subject: [PHP] PRE-formated text into DATABASE
Importance: High

Hi there,

I'm tryng to make an online form which update the content of a database.

I have tried it and it works BUT the user has to include all of the HTML
tags otherwise the text which is pulled out (displayed on the webpage)
from the database loose the pre-formated form. All the paragraphs are
gone... and everything is just in one line.

I'm just wondering if there is another way to preserve a pre-formated
text (for example from Ms Word) that the user put into the form and the
insert into the database without including the HTML tags.



PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to