maloach
04-14-2005, 10:28 AM
I am new to PHP and mySQL and have a question concerning the formatting of a text field. On her old side, our client used to have the ability to cut a document from Word or other editor, and paste it into a field on a PHP form online. It would preserve the formatting (bold, italic, centering, underline, etc).
On Hostrocket, it simply dumps everything in as text. Is there a way to force a text field in mySQL/PHP to preserve this formatting when it is pasted in? Perhaps a different field type, or a way to paste in HTML text and have it recognize it as HTML. I was thinking also of a rich text type field, but this doesn't appear to be available in mySQL. Any suggestions?
Regards,
Mark Loach
On Hostrocket, it simply dumps everything in as text. Is there a way to force a text field in mySQL/PHP to preserve this formatting when it is pasted in? Perhaps a different field type, or a way to paste in HTML text and have it recognize it as HTML. I was thinking also of a rich text type field, but this doesn't appear to be available in mySQL. Any suggestions?
Regards,
Mark Loach