Re: text into web db interface

From: Date: Thu, 01 Nov 2001 07:29:48 +0000
Subject: Re: text into web db interface
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73120@lists.php.net to get a copy of this message
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.

« previous php.general (#73120) next »