Re: Seeing <BR><BR> in input box
| From: | anch.org | Date: | Tue, 13 Nov 2001 13:19:49 +0000 |
| Subject: | Re: Seeing <BR><BR> in input box | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10379@lists.php.net to get a copy of this message | ||
Looks like something in your script is converting to HTML. Line breaks are
converted to <BR> for display as HTML. To re-enter into a text box you'll
have to convert the <BR> back into crLF.
"Jack" <jack@nedcor.com> wrote in message
news:20011112064709.2151.qmail@pb1.pair.com...
> Dear all
> I had made a page for edit which contains Input box, but the Input box is
> not blank, i had used the php script to make the input box use the last
> input text as the default value.
> The problem comes out like this, when i input the text into the input box
on
> the first time, it just works fine (it copy my heading to a file called
> "Heading.txt" and the content to a file called "Content.txt", then when i
> click a link , the heading and the context from these file will be display
> nicely.), but when i go back to the page for edit on sec time, i can see
> there is a lot of <BR> in the input box, as much time i submit to the
input
> box, the more <BR> will come out and display in the box.
> So is there anyway that i can skip the <BR> appear in my input box???
> The input box is actually read the content from the heading and
content.txt
> file.
>
> Thx
> Jack
> jack@nedcor.com
>
>