RE: [PHP] Line breaks in textareas

From: Date: Mon, 30 Oct 2000 11:10:57 +0000
Subject: RE: [PHP] Line breaks in textareas
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-22719@lists.php.net to get a copy of this message
David Robley ... > On Mon, 30 Oct 2000, Tyler Longren wrote: > > Hello list, > > > > Is there anyway to detect line breaks in textareas? For example, when a > > user hits the enter key, the cursor moves down a line. Is there something > > to do this in the <textarea> tag? I've done this before, but I don't > > remember how I accomplished it. > > There is a non-standard attribute WRAP with values of NONE, VIRTUAL (causes > line wrap within the textarea but doesn't add linebreaks) or PHYSICAL (as > for virtual but inserts linebreaks). Is that what you mean? I wonder if Tyler is triyng to detect when the user presses enter in order to make some effect via Java (as playing a carriage return sound or somewhat). Hope not. Else, you can detect "\n" in the textarea.

« previous php.general (#22719) next »