RE: [PHP] deleting lines in a textfield

From: Date: Mon, 22 Apr 2002 16:02:23 +0000
Subject: RE: [PHP] deleting lines in a textfield
Groups: php.general 
Request: Send a blank email to php-general+get-94024@lists.php.net to get a copy of this message
AFAIK, there are no lines in a textfield; Text is simply displayed as needed to fit in the area of the textfield. As soon as you can do anything with it in PHP, it is no longer in a textfield but simply one string; This string you may search with regular expressions or using PHP string functions. If there were (are?) several lines, just crop everything from the first newline to (not including) the second one. HTH, Kiko > -----Original Message----- > From: Kris Vose [mailto:KVose@alidaconnection.com] > Sent: Monday, April 22, 2002 5:45 PM > To: php-general@lists.php.net > Subject: [PHP] deleting lines in a textfield > > > How would you go about deleting a specific line in a > textfield via PHP? For example, I want to delete line 2 only > and save the changes. How would I go about doing this using > fopen and fwrite? >   > Kris >

« previous php.general (#94024) next »