Re: <br> appear in Text file

From: Date: Tue, 28 Aug 2001 00:28:50 +0000
Subject: Re: <br> appear in Text file
References: 1  Groups: php.db php.general php.windows 
Request: Send a blank email to php-general+get-64705@lists.php.net to get a copy of this message
Hi Jack, The 'black box' you see is a newline, which can be removed by doing this: $string=str_replace("\n","",$string); $string=str_replace("\r","",$string); That will replace \n (The newlines) and \r (The returns) with nothing, getting rid of your problem. Hope this helps, -Andy Jack <jack@nedcor.com> wrote in message news:20010827104353.87033.qmail@pb1.pair.com... > Dear all > I'm writing a script which will greb the data from a user input form into a > text file (txt file), but the problem is that when the data had passed to > the txt file, there will be some thing like the <br> and black square appear > inside the file. This is affecting to display the data from that txt file to > the text box in (input box). > Is there anyway that i can do to avoid grebing the <br> from txt file to my > input box's value? or anyway that i can delete the <br> when the data is > greb from input box to txt file?? > > Thanks a lot > > Jack > jack@nedcor.com > > >

« previous php.general (#64705) next »