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.
applying different formating options on the text
Moderator: General Moderators
- allspiritseve
- DevNet Resident
- Posts: 1174
- Joined: Thu Mar 06, 2008 8:23 am
- Location: Ann Arbor, MI (USA)
Re: applying different formating options on the text
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
Why don't you use a WYSIWYG editor like TinyMCE, FCKEditor, etc...