Re: [PHP] new lines in textareas?

2008-04-01 Thread Richard Lynch
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

Re: [PHP] new lines in textareas?

2008-04-01 Thread Richard Lynch
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

Re: [PHP] new lines in textareas?

2008-03-31 Thread Daniel Brown
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.

Re: [PHP] new lines in textareas?

2008-03-30 Thread TG
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

Re: [PHP] new lines in textareas?

2008-03-30 Thread jeffry s
@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

Re: [PHP] new lines in textareas?

2008-03-30 Thread tedd
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

Re: [PHP] new lines in textareas?

2008-03-30 Thread Paul Scott
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.

Re: [PHP] new lines in textareas?

2008-03-30 Thread jeffry s
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

[PHP] new lines in textareas?

2008-03-29 Thread Mary Anderson
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

Re: [PHP] new lines in textareas?

2008-03-29 Thread Casey
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.

[PHP] New lines

2004-02-03 Thread Nico Berg
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

Re: [PHP] New lines

2004-02-03 Thread Jason Wong
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

RE: [PHP] New lines

2004-02-03 Thread Nico Berg
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

Re: [PHP] New lines

2004-02-03 Thread Jason Wong
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

Re: [PHP] New lines

2004-02-03 Thread John Nichel
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

RE: [PHP] New lines

2004-02-03 Thread Robert Sossomon
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

Re: [PHP] New lines

2004-02-03 Thread Jason Wong
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

Re: [PHP] New lines

2004-02-03 Thread John Nichel
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

Re: [PHP] New lines

2004-02-03 Thread John W. Holmes
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

Re: [PHP] New lines

2004-02-03 Thread John Nichel
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

RE: [PHP] New lines

2004-02-03 Thread Robert Sossomon
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

RE: [PHP] New lines

2004-02-03 Thread Nico Berg
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

RE: [PHP] New lines

2004-02-03 Thread Matt Matijevich
[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

Re: [PHP] new lines in text fields

2001-07-25 Thread Brad Wright
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

Re: [PHP] new lines in text fields

2001-07-08 Thread David Robley
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

[PHP] new lines in text fields

2001-07-06 Thread Mat Marlow
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

Re: [PHP] new lines in text fields

2001-07-06 Thread rick
, 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

Re: [PHP] new lines in text fields

2001-07-06 Thread Mauricio T?llez Jim?nez
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