/t5/dreamweaver-discussions/using-html-in-an-input-text-field/td-p/99791Jun 14, 2006
Jun 14, 2006
Copy link to clipboard
Copied
Hey all,
I need to be able to retain some kind of formatting when
placing data in a mysql database.
Currently when the data is pulled back out of the db it is
just one loooonnnnnng string. Thats no good. I need at the very
least paragraphs formatted.
I am using a standard web form to input text and I am aware
that I can use html tags to format text on the way in, however the
problem lies with my clients knowing nothing about html, and nor do
they want to for that matter.
Is there any way to keep formating when using standard web
forms?
Well you can allow people to enter HTML tags themselves, but
make sure you
weed out any <script> tags etc, which allow people to
do nasty things, such
as redirect people viewing the page to a different site.