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:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 5:45 PM
> To: [EMAIL PROTECTED]
> 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
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to