On Thu, 1 Nov 2001 14:51, AAustin wrote: > Hi > > Is there a php technique, app, code example..., where users can enter > normal formatted text with paragraphs etc and the '<br>' or '<p> ' tags > (and even 'table') are entered so the text looks ok on an php page. > This will then mean the end user does not need to know a smattering of > html code just to enter some text into db. > > thanks > andrew
There is the nl2br() function which will convert end of line characters to a <BR>. For tables, you might have to build something based on say tabs as cell separators, EOL as row separators, but you would also need some indication of where table starts and ends. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Check book: a book with a unhappy ending. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]