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 insert
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: textarea cols=10 rows=10
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 br don't work.
submitting through the textarea, not re-displaying with
proper breaks when loading a page containing a text area that should have
data.
-TG
- Original Message -
From: Mary Anderson [EMAIL PROTECTED]
To: php-general@lists.php.net
Date: Sat, 29 Mar 2008 21:26:24 -0700
Subject: [PHP] new lines
@lists.php.net
Date: Sat, 29 Mar 2008 21:26:24 -0700
Subject: [PHP] new lines in textareas?
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 br
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 br don't work. They just get quoted literally
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.
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 for the text
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 br don't work. They just get quoted literally in the
text. I suspect I need to use
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 br don't work.
Hi all,
I have a list of words (sense):
FIRST
SECOND
AND THIRD
FOURTH
etc
fread gives back FIRST SECOND AND THIRD FOURTH
How can i get the list as is?
Nico
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 at
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?
Taking a wild guess I would say you need to familiarise yourself
with HTML
before using
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 any
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
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
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 the
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
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 not
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 claim
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
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
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] New lines
John W. Holmes wrote
[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
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 fields
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 having
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 having to upload text files?
Thanks,
Mat
--
PHP
, July 06, 2001 8:06 AM
Subject: [PHP] new lines in text fields
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
Hi, I don't know what is exactly what you want to do, but I have a page with a
textarea 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
28 matches
Mail list logo