On Sun, March 30, 2008 7:20 am, jeffry s wrote:
> my client ask me about this problem 2 weeks ago. he want the text to
> automatically
> go to new line after user type until the end of the line. The only
> possible
> solutions so
> far is using wrap='hard' or wrap='soft'
> eg:
> but wrap only wor
On Sat, March 29, 2008 11:26 pm, Mary Anderson wrote:
> I have a php script which produces text which is to be displayed
> in
> a textarea. I have the wrap for the text area set to 'hard'. I need
Do NOT set the wrap to "hard"
It will only cause you grief in the long run.
It's going to inse
On Sun, Mar 30, 2008 at 12:26 AM, Mary Anderson
<[EMAIL PROTECTED]> wrote:
> Hi all,
> I have a php script which produces text which is to be displayed in
> a textarea. I have the wrap for the text area set to 'hard'. I need to
> have newlines inserted in the text.
> "\n" and "" don't
On Mon, Mar 31, 2008 at 12:40 AM, Paul Scott <[EMAIL PROTECTED]> wrote:
>
> On Sun, 2008-03-30 at 12:29 -0400, tedd wrote:
> > At 9:26 PM -0700 3/29/08, Mary Anderson wrote:
> > >Hi all,
> > >I have a php script which produces text which is to be displayed
> > >in a textarea. I have the wrap
On Sun, 2008-03-30 at 12:29 -0400, tedd wrote:
> At 9:26 PM -0700 3/29/08, Mary Anderson wrote:
> >Hi all,
> >I have a php script which produces text which is to be displayed
> >in a textarea. I have the wrap for the text area set to 'hard'. I
> >need to have newlines inserted in the text.
At 9:26 PM -0700 3/29/08, Mary Anderson wrote:
Hi all,
I have a php script which produces text which is to be displayed
in a textarea. I have the wrap for the text area set to 'hard'. I
need to have newlines inserted in the text.
"\n" and "" don't work. They just get quoted literally
On Sun, Mar 30, 2008 at 2:07 PM, TG <[EMAIL PROTECTED]> wrote:
>
> Is \n included literally because you're using single quotes for the
> variable?
>
> $textdata = 'This is a test\nThis is the second line';
>
> vs...
>
> $textarea = "This is a test\nThis is the second line";
>
> I would guess a lot
Is \n included literally because you're using single quotes for the variable?
$textdata = 'This is a test\nThis is the second line';
vs...
$textarea = "This is a test\nThis is the second line";
I would guess a lot of the pages you find are talking about what to do with
the text after submitti
On Sat, Mar 29, 2008 at 9:26 PM, Mary Anderson
<[EMAIL PROTECTED]> wrote:
> Hi all,
> I have a php script which produces text which is to be displayed in
> a textarea. I have the wrap for the text area set to 'hard'. I need to
> have newlines inserted in the text.
> "\n" and "" don't w
[snip]
This is where the var's $list and $additional_letters are filled. The
file
is called hangman.php. I want to open this file, put the words into a
html
file so that someone can change them and write them back. That's it.
[/snip]
is it out of the question to store the values in ther own separa
e
is called hangman.php. I want to open this file, put the words into a html
file so that someone can change them and write them back. That's it.
Nico
> -Oorspronkelijk bericht-
> Van: John Nichel [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 3 februari 2004 21:57
> Aa
A LOT of this is pure speculation though, which is why I sent the one I
did. Since with it he can patch whatever data he gets from $line into
his code wherever he needs it, whether he flat file is pure text or some
HTML or if the output is going to be a drop-down list (nl2br wouldn't
work in this
John W. Holmes wrote:
From: "John Nichel" <[EMAIL PROTECTED]>
If all the OP wants to do is echo out the file, then why not just use
the file() function. Then each line is loaded up into an array element,
and you've saved yourself a bit of cpu. And your example above
doesn't address the OP's cl
From: "John Nichel" <[EMAIL PROTECTED]>
> If all the OP wants to do is echo out the file, then why not just use
> the file() function. Then each line is loaded up into an array element,
> and you've saved yourself a bit of cpu. And your example above
> doesn't address the OP's claim that it is
Robert Sossomon wrote:
There was a wong answer and then there is the right answer:
$fp = fopen($file,"r");
while (!feof($fp))
{
$line = fgets($fp, 4096); //gets one line at a time
echo $line; // Or whatever else you want to do
}
fclose($fp);
HTH.
Robert
If all the OP wants to do
On Wednesday 04 February 2004 03:26, Robert Sossomon wrote:
> There was a wong answer
I assume that was a weak attempt at a cheap joke, or else you couldn't spell,
or you need a new keyboard, or something.
> and then there is the right answer:
Whether that is the right answer depends on why th
There was a wong answer and then there is the right answer:
$fp = fopen($file,"r");
while (!feof($fp))
{
$line = fgets($fp, 4096); //gets one line at a time
echo $line; // Or whatever else you want to do
}
fclose($fp);
HTH.
Robert
--
PHP General Mailing List (http://www.php.n
Nico Berg wrote:
He, Jason thank's.
BTW, the site www.gremlins.biz doesn't work, maybe learn something about
webdeamons before making websites...
His site works for me. Maybe you shouloh, nevermind.
Gr, Nico
PS wrong guess!
If you were a bit more clear about your issue, and if you post
On Tuesday 03 February 2004 22:50, Nico Berg wrote:
> BTW, the site www.gremlins.biz doesn't work, maybe learn something about
> webdeamons before making websites...
Works for me ... maybe you have the wrong browser.
> PS wrong guess!
Well, I'm no mind-reader. If you're not going to post an
15:16
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: [PHP] New lines
>
>
> On Tuesday 03 February 2004 21:26, Nico Berg wrote:
> > fread gives back "FIRST SECOND AND THIRD FOURTH"
>
> How did you ascertain that?
>
> > How can i get the list as is?
>
>
On Tuesday 03 February 2004 21:26, Nico Berg wrote:
> fread gives back "FIRST SECOND AND THIRD FOURTH"
How did you ascertain that?
> How can i get the list as is?
Taking a wild guess I would say you need to familiarise yourself with HTML
before using PHP. In the meantime you could have a look a
use the 'nl2br' fuction‹ Inserts HTML line breaks before all newlines in a
string
> From: "Mat Marlow" <[EMAIL PROTECTED]>
> Date: Fri, 6 Jul 2001 16:06:58 +0100
> To: [EMAIL PROTECTED]
> Subject: [PHP] new lines in text fields
>
> Hi all,
> I am in desperate need for a solution to HTML text fie
On Sat, 7 Jul 2001 00:36, Mat Marlow wrote:
> Hi all,
> I am in desperate need for a solution to HTML text fields not storing
> new lines. I'm storing news articles in a database but all the text
> just ends up in a big block because it ignores line breaks. Is thre a
> way around this without hav
Hi, I don't know what is exactly what you want to do, but I have a page with a
tag, and a mySQL database with a TEXT field, that way I can use newline
breaks.
Bye.
On Fri, Jul 06, 2001 at 04:06:58PM +0100, Mat Marlow wrote:
> Hi all,
> I am in desperate need for a solution to HTML text fields
Have you tried putting the newline character (\n) into your html? That
works great for me. My only problem is that the output from an XSL
transformation has all the line breaks stripped out...
- Original Message -
From: "Mat Marlow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Frid
25 matches
Mail list logo