John Taylor-Johnston wrote:
Folks are complaining mail arrives and text will not wrap. $message
comes directly from a textarea. Old mail readers, I guess?
How can I make their life better and make the text wrap?
http://www.php.net/wordwrap
--
PHP General Mailing List (http://www.php.net/)
To
Folks are complaining mail arrives and text will not wrap. $message
comes directly from a textarea. Old mail readers, I guess?
How can I make their life better and make the text wrap?
mail("[EMAIL PROTECTED]", stripslashes($subject), stripslashes($message),
"Return-Path: <[EMAIL PROTECTED]>\r\n
on 22/03/03 3:57 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote:
> $my_data = "This is a really long string that could go on for ever and ever
> and ever and ever and ever and ever and ever and ever and ever and ever and
> ever and ever and ever and don't wrap to my table it makes it bigger";
>
>
$my_data = wordwrap( $my_data, 50 );
http://www.php.net/manual/en/function.wordwrap.php
it'll wrap after 50 charcters... change "50" to what you want it to start
wrapping at. If $my_data is inside a it should wrap the text
automatically unless you tell the table not to wrap ..
cheers,
- Sebastia
$my_data = "This is a really long string that could go on for ever and ever
and ever and ever and ever and ever and ever and ever and ever and ever and
ever and ever and ever and don't wrap to my table it makes it bigger";
echo $my_data;
How can I make this wrap to the table?
--
Philip J. N
> > It should have a % for the width at least, and then it should wrap
> > itself.
>
> Not necessarily, if you have a single 'word' (a string of characters
with
> no
> space) that is very long then the width of the table stretches to
> accomodate
> the length of that 'word'.
Right, that's why I
On Monday 29 April 2002 01:53, John Holmes wrote:
> It should have a % for the width at least, and then it should wrap
> itself.
Not necessarily, if you have a single 'word' (a string of characters with no
space) that is very long then the width of the table stretches to accomodate
the length o
t; cheers for the suggestion
>
> - Original Message -
> From: "John Holmes" <[EMAIL PROTECTED]>
> Date: Monday, April 29, 2002 3:36 am
> Subject: RE: [PHP] Wrapping Text
>
> > Wordwrap() might be a good solution for you, but it's probably
> &g
"John Holmes" <[EMAIL PROTECTED]>
Date: Monday, April 29, 2002 3:36 am
Subject: RE: [PHP] Wrapping Text
> Wordwrap() might be a good solution for you, but it's probably
> more of a
> table design issue. The table needs some whitespace to break to a new
> line. If you a
EMAIL PROTECTED]
> Subject: [PHP] Wrapping Text
>
> Hi PHP digest readers.
>
> Ok I have a problem and a question which I am certain many share and
> even a solution to my problem, however I wish to hear how you dealt
with
> this issue to see if there is a better method.
&g
Hi PHP digest readers.
Ok I have a problem and a question which I am certain many share and
even a solution to my problem, however I wish to hear how you dealt with
this issue to see if there is a better method.
Ok for my problem, it is regarding a smilie system. Currently what
happens is if
On Mon, 21 May 2001 12:57:13 -0400, you wrote:
>
>
>Hello.. Sorry, I know this is a constant problem.., at least for me.
>
>Now I am using 'text' to store big inputs. It does not wrap on the
>screen display...
>
>I have it working on my machine with wordwrap with php4.
>The isp does not have
Hello.. Sorry, I know this is a constant problem.., at least for me.
Now I am using 'text' to store big inputs. It does not wrap on the
screen display...
I have it working on my machine with wordwrap with php4.
The isp does not have php4 yet, and it doesn't work with I upload.
What is th
On 08-May-01 Romulo Roberto Pereira wrote:
> Hello!
>
> If a user drop a text like this in a textarea:
>
> ---
>
> As you can see the text is simple and there are not any html tags. How do I
> do to add this elements so the text become something like this below, I mean
> how to wrap it up i
PM
To: Php-General
Subject: [PHP] Wrapping text to store in the database
Hello!
If a user drop a text like this in a textarea:
---
the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a
44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained
an incalcu
Hello!
If a user drop a text like this in a textarea:
---
the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a
44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained
an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp
collections, ca
Or better yet, use nl2br() :
http://www.php.net/manual/en/function.nl2br.php
Regarding the html WRAP attribute, this little tutorial looks
interesting :
http://www.web-wise-wizard.com/html-tutorials/
html-form-forms-textarea-wrap.html
(note: it's one link, had to
one thing that would help is to str_replace("\n", "");
I think textarea has a wrap attribute doesn't it?
On Wednesday 04 April 2001 13:20, Chris Anderson wrote:
> I've been having large problems with this so I decided to ask you guys(and
> gals ^_^). I have a textarea where you can type your t
I've been having large problems with this so I decided to ask you guys(and gals ^_^).
I have a textarea where you can type your text and it is saved to a file. Then another
script includes that. Unfortunately I can't find a way for the textarea to wrap the
text, or make it so it shows it they w
19 matches
Mail list logo