Typically people use BBCode to do this.
This mean the user will enter something like
[b]this is bold[/b] or [i]italic[/u] and the BBCode will be parsed and
transformed into HTML when the page is displayed. There are many parsers
already written to do this, or you could make your own, or use PEAR:
h
> I am looking for the best way to have a user enter information and
> format it ... i.e. Bold, Italics, etc... with out havng to use the
> HTML commands...
> Using PHP4.
> Any suggestions...
Take a look at the way phpBB does this.
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
T
2 matches
Mail list logo