applying different formating options on the text

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
krisbadsg
Forum Newbie
Posts: 4
Joined: Thu Jun 25, 2009 4:53 am

applying different formating options on the text

Post 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.
User avatar
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

Post by allspiritseve »

You can't do this with PHP alone. You will need some sort of javascript. My personal preference is jQuery.
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: applying different formating options on the text

Post by Darhazer »

Why don't you use a WYSIWYG editor like TinyMCE, FCKEditor, etc...
Post Reply