01-06-2008, 08:59 PM
|
#2 (permalink)
|
|
The Contributor
Join Date: Dec 2007
Location: Florida
Posts: 73
Thanks: 12
|
What do you mean by run it through a query?
And as far as nl2br, say $text was the user's input, just use $text = nl2br($text); and it should work just fine.
For a WYSIWYG editor, just have a row of buttons that, when clicked, adds that code to the text field. Most of the editors nowadays use Javascript, and I'm pretty sure thats the only way to do it without reloading the page.
This might help: How to Create a WYSIWYG Rich Text Editor in JavaScript. Pt. 1 - WebReference.com-
Hope that helped =)
|
|
|