0

Hi friends,

In one of my project I had a text box and I want to store its content to database.

I blocked mysql injection with "mysql_real_escape_string" command.
But I need to add some formating button in that field. ie italics, bold, font size and link field.

From a site I found that they are taking input like this Hi I m wonder how to change this to html filed and save in database or it will changed to html while running it from database ?

Please help me
Thanks in advance
Rajeesh

3
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by rajeesh_rsn
0

Hello,
Your “input like this” didn’t added , only “Hi”, . A form field with html in its value is text, so there is no problem saving it to database. All that are shortcuts , if I understood correctly your question what you are talking about is a WYSIWYG like tnyMCE.

0

Hi check out these:

niceedit,
yui2,
Tinymce,
cuteeditor,

They can all be googled..

They will install into your textarea, with a few simple adjustments and give you a lot more options in your textarea than you described above :-)

0

Hi friends thanks for the reply and

replace "hi" with this

From a site I found that they are taking input like this

(COLOR="magenta")Name(/COLOR)

* Replace ( and ) with [ and ]

I m wonder how to change this to html filed and save in database or it will changed to html while running it from database ?

Please help me
Thanks in advance
Rajeesh

Edited by rajeesh_rsn: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.