Jasper Bryant-Greene wrote:
On Mon, 2005-11-07 at 12:20 +1000, Murray @ PlanetThoughtful wrote:
Example code:
$body = 'From: ' . $name . '\r\n\r\n';
$body .= 'Email:' . $email . '\r\n\r\n';
$body .= 'IP Address: ' . $_SERVER['REMOTE_ADDR'] . '\r\n\r\n';
$body .= 'Feedback:\r\n\r
---Original Message-
> From: Murray @ PlanetThoughtful [mailto:[EMAIL PROTECTED]
> Sent: Monday, 7 November 2005 10:21 am
> To: php-general@lists.php.net
> Subject: [PHP] Line breaks in mail function?
>
> Hi All,
>
> I'm building a site on a new web host and am
On Mon, 2005-11-07 at 12:20 +1000, Murray @ PlanetThoughtful wrote:
> Example code:
>
> $body = 'From: ' . $name . '\r\n\r\n';
> $body .= 'Email:' . $email . '\r\n\r\n';
> $body .= 'IP Address: ' . $_SERVER['REMOTE_ADDR'] . '\r\n\r\n';
> $body .= 'Feedback:\r\n\r\n';
> $body .=
Hi All,
I'm building a site on a new web host and am currently working on
feedback forms.
I'm using the mail() function to send the feedback to the destination
mail account, and I'm having problems getting the body of the email to
line break.
I've tried constructing the body with both "\n\
On Mon, 29 Nov 2004 12:29:59 -0500, Chris Farrugia
<[EMAIL PROTECTED]> wrote:
> On one of my forms to send email, I have multiple line breaks with different
> paragraphs. I looked up the nl2br function and that looks like an option,
> but I would ideally like to wrap these paragraphs inside tags.
Chris Farrugia wrote:
Greetings,
On one of my forms to send email, I have multiple line breaks with different
paragraphs. I looked up the nl2br function and that looks like an option,
but I would ideally like to wrap these paragraphs inside tags. Is
there a way to do this easily? Any advice
Greetings,
On one of my forms to send email, I have multiple line breaks with different
paragraphs. I looked up the nl2br function and that looks like an option,
but I would ideally like to wrap these paragraphs inside tags. Is
there a way to do this easily? Any advice would be greatly appr
At 9:11 AM +0800 9/14/04, Michael Collins wrote:
How do I preserve line breaks in the body of an email message?
Nevermind got it figured out. sorry for the extra bandwidth
--
Michael
__
||| Michael Collins
||| Kuwago Inc
||| Singapore and Seattle USA
--
PHP General Mailing List (http://www.php.net
How do I preserve line breaks in the body of an email message? The
email message is plain text and I simply want to have a return
included between each element entered into a form. I have used \n or
\r\n (since this is a Windows server) to no avail. The email message
I get back has all the data
Ok thats cool, guess i'll look for both, and only one in the data
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 5:35 PM
Subject: Re: [PHP] Line breaks in P
On Wednesday, December 17, 2003, at 03:10 PM, Philip J. Newman wrote:
Question:
When you hit enter in a text box is that classified as a \n?
generally, yes.
depending on the client platform, it might be an \r\n or \r (I've
heard)...
justin
--
PHP General Mailing List (http://www.php.net/)
T
Question:
When you hit enter in a text box is that classified as a \n?
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d me.
--
Kevin Stone
[EMAIL PROTECTED]
- Original Message -
From: "Steven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 1:50 PM
Subject: [PHP] Line Breaks in dynamic Download
>
> Again, the new problem is that the Text is not
Again, the new problem is that the Text is not downloading as a file. It is
just being printed to the screen.
I tested the following code:
on a WinNT 4.0 with Apache 1.3.24 and PHP 4.2.3 and did not come across the
same issues as you.
I was prompted to download or open the file.
However,
ginal Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "'Kevin Stone'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 1:21 PM
Subject: RE: [PHP] Line Breaks in dynamic Download
> [snip]
> header("Content
[snip]
[/snip]
Try this;
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
line
Later,
Larry Irwin
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 2:48 PM
Subject: [PHP] Line Breaks in dynamic Download
> I have a script that allows clients to download their email lists fro
AIL PROTECTED]>
To: "'Kevin Stone'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 12:55 PM
Subject: RE: [PHP] Line Breaks in dynamic Download
> [snip]
> I have a script that allows clients to download their email lists from a
&
[snip]
I have a script that allows clients to download their email lists from a
database. However I can not get the 'new line' characters (\n \r) to do
their job in Notepad when the download is prompted and the file saved to
disk. I've simplified the problem with the code below. Both \n and \r
> $file = "LINE ONE\nLINE TWO\rLINE THREE\n\r";
Try this instead and see if it works...
$windowsNewLine = chr(13) . chr(10);
$file = "LINE ONE{$windowsNewLine}LINE TWO{$windowsNewLine}LINE
THREE{$windowsNewLine}";
Not sure if Notepad will interpret \r\n correctly...
Chris
--
PHP General
I have a script that allows clients to download their email lists from a
database. However I can not get the 'new line' characters (\n \r) to do
their job in Notepad when the download is prompted and the file saved to
disk. I've simplified the problem with the code below. Both \n and \r
display
On Thu, 28 Jun 2001 04:44, Nathan Cook wrote:
> Hello-
>
> I am selecting a value from a blob field in a mysql db. The value
> looks like this:
>
> Test 12...3 \r \n %0%D Test
>
> When I print that value in a $value -- The
> textarea returns exactly what you see above. I am trying to get it
try the function nl2br($value)
regards,
Alva Chew
"Nathan Cook" <[EMAIL PROTECTED]> wrote in message
00cf01c0ff3d$72992160$[EMAIL PROTECTED]">news:00cf01c0ff3d$72992160$[EMAIL PROTECTED]...
> Hello-
>
> I am selecting a value from a blob field in a mysql db. The value looks
like
> this:
>
> Tes
Hello-
I am selecting a value from a blob field in a mysql db. The value looks like
this:
Test 12...3 \r \n %0%D Test
When I print that value in a $value -- The textarea returns
exactly what you see above. I am trying to get it to display a line break (so
that I can store the line breaks
aving the data into the table, use the above
but then you won't need it when you pull the data back out.
Martin.
-Original Message-
From: Jason Lotito [mailto:[EMAIL PROTECTED]]
Sent: 29 March 2001 20:30
To: [EMAIL PROTECTED]; Php Mailing List
Subject: RE: [PHP] Line bre
> -Original Message-
> From: Matt Davis [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 1:29 AM
> To: Php Mailing List
> Subject: [PHP] Line breaks in PHP
>
>
> I have a form that edits the text on a web page by putting the
> data into a
>
*
RTM. Sometimes it helps! :-)
> - Original Message -
> From: Matt Davis <[EMAIL PROTECTED]>
> To: Php Mailing List <[EMAIL PROTECTED]>
> Sent: Thursday, March 29, 2001 11:29 AM
> Subject: [PHP] Line breaks in PHP
>
>
> > I have a form that edits th
29, 2001 11:29 AM
To: Php Mailing List
Subject: [PHP] Line breaks in PHP
I have a form that edits the text on a web page by putting the data into a
db and then outputting to the webpage when it is called. When I enter my
text into my form I use the return key to start new lines, but when the
I think nl2br() is what you're looking for.
RenzE
Matt Davis wrote:
>
> I have a form that edits the text on a web page by putting the data into a
> db and then outputting to the webpage when it is called. When I enter my
> text into my form I use the return key to start new lines, but when
I have a form that edits the text on a web page by putting the data into a
db and then outputting to the webpage when it is called. When I enter my
text into my form I use the return key to start new lines, but when the text
appears on my webpage it has no line breaks so the text just wraps to
30 matches
Mail list logo