Page 1 of 1

applying different formating options on the text

Posted: Mon Jun 29, 2009 12:04 pm
by krisbadsg
i am a learner in php and in one exercise :

the user has to input the text and in a text area and there should be formatting options like change the color of the text, size and font family. i am able to the task but the result is in another page. please any body tell me is it possible to do it in the same page. that means we will input text and apply the changes and the output should be loaded in the same page and we must be able to continue the process any number of times.

Re: applying different formating options on the text

Posted: Mon Jun 29, 2009 3:00 pm
by allspiritseve
You can't do this with PHP alone. You will need some sort of javascript. My personal preference is jQuery.

Re: applying different formating options on the text

Posted: Tue Jun 30, 2009 3:15 pm
by Darhazer
Why don't you use a WYSIWYG editor like TinyMCE, FCKEditor, etc...