Text Formatting
Moderator: General Moderators
Text Formatting
Hi,
I want Use Textarea with Formatting Options (like Bold, Italic etc etc)
Let say like this textarea in forum 'new topic posting'
Where can i get like this. i want this to be work in multi OS..
Like:
--------
Company Name
Street
Some text ,text text text text text
text text
text
---------
And with paragraphs
Any body can help me??
Thanks
I want Use Textarea with Formatting Options (like Bold, Italic etc etc)
Let say like this textarea in forum 'new topic posting'
Where can i get like this. i want this to be work in multi OS..
Like:
--------
Company Name
Street
Some text ,text text text text text
text text
text
---------
And with paragraphs
Any body can help me??
Thanks
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
For something really advanced look at this
http://www.fredck.com/FCKeditor/
for a demo, look here http://www.fredck.com/FCKeditor/Demo/
Mark
http://www.fredck.com/FCKeditor/
for a demo, look here http://www.fredck.com/FCKeditor/Demo/
Mark
Hi twigletmac - Text format
Hi twigletmac
Sorry for cross post.. So, i can download BBCode from sourceforge.net
And main issue is, i am entering some text as Paragraphs in text area. to store it in database i am using datatype 'text' .
But while displaying, its showing as one paragraph. Suppose if paste some content from BBC news website and if contains some 5-6 paragraphs, while displaying it to the user , Its showing as only one paragrpah. All the text in one para..
Can you help me on this??
Sorry for cross post.. So, i can download BBCode from sourceforge.net
And main issue is, i am entering some text as Paragraphs in text area. to store it in database i am using datatype 'text' .
But while displaying, its showing as one paragraph. Suppose if paste some content from BBC news website and if contains some 5-6 paragraphs, while displaying it to the user , Its showing as only one paragrpah. All the text in one para..
Can you help me on this??
i'll give u a example:
focus your attention on the nl2br, this will give your line breaks =]
cheers
Code: Select all
<?php
$sql = "select * from table_name";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
$comment = nl2br($row["comment"]);
?>cheers
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA