Re: splitting up contents of a test box

From: Date: Mon, 19 Feb 2001 00:34:19 +0000
Subject: Re: splitting up contents of a test box
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-40484@lists.php.net to get a copy of this message
On Sat, 17 Feb 2001 09:31, James, Yz wrote: > If each of the scrolling lines is separated by something regular, like > a carriage return, or a line break, tab (etc), you could use explode(); > and have the values returned as an array. > > James. > > > I have a form that contains a scrolling text box. When I display the > > contents of the text box, say in variable $form[mytextbox], it > > displays all on one line (or wraps at end of line). As the ending > > character of each line will vary, does anyone know of away to split > > the lines up so that I can display the text box contents line by > > line? > > > > Thanks, > > Don > > > > Have you tried using the WRAP=VIRTUAL parameter for the TEXTAREA tag? -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#40484) next »