PDA

View Full Version : php help?


Zrikz
12-29-2008, 01:32 PM
So I need some help, for something that I think should be easy, I just don't know how to do it =/

I want to make a button, like BB code for a php page. So when clicked, it will take the highlighted text and apply bold, italics, superscript, subscript, etc. html tags around the text.

GigaFuzz
12-29-2008, 01:36 PM
Isn't that done with JavaScript rather than PHP?

Edit: My first hit on google: http://forums.devshed.com/javascript-development-115/add-b-b-tags-to-selected-text-in-a-textarea-209193.html

Zrikz
12-29-2008, 02:09 PM
well hey, that works, thanks a bunch. I figured it would use some javascript, I was just thinking it would be all php, but I don't know of any listening php scripts =/