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
Hi Murray,
Try doing something like this:
---
$body = "From: $name
Email: $email
IP Address: $_SERVER['REMOTE_ADDR']
Feedback:
$feedback
";
$fromaddr = "$email
Reply-To: $email
X-Mailer: PHP/" . phpversion();
mail("[EMAIL PROTECT
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 .=
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
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
On Thursday 22 July 2004 13:13, Justin Patrin wrote:
> AHA! Outlook, by default, removes "extra" line breaks in text
> messages. Do you see a message which says this in Outlook? This is an
> option you can turn off. If this doesn't work, just send the message
> as HTML. There's really no reason no
y properly on my site *
>
> ..... Code to display message
>
> Thanks
>
>
>
> -Original Message-
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: July 21, 2004 6:36 PM
> To: PHP User
> Cc: PHP
> Subject: Re: [PHP] Line breaks again
>
inal Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: July 21, 2004 6:36 PM
To: PHP User
Cc: PHP
Subject: Re: [PHP] Line breaks again
PHP User wrote:
> I have managed to get the line breaks to show up on my site no problem,
but
> I still get one long line when it is sent
PHP User wrote:
I have managed to get the line breaks to show up on my site no problem, but
I still get one long line when it is sent to my email. I have looked and
looked and have read all the stuff I could find on \r\n, so I'm not sure
where to go from here since it's not working...
Are you viewi
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
John Nichel wrote:
Rodney Green wrote:
Actually, I'm not having problems with that. The whitespace is still
there in between the commands and arguments, etc. I'm using fgets ,
not fread. Not sure what the difference between the two is but I'll
check it out. The problem I am having however is t
Rodney Green wrote:
Actually, I'm not having problems with that. The whitespace is still
there in between the commands and arguments, etc. I'm using fgets , not
fread. Not sure what the difference between the two is but I'll check it
out. The problem I am having however is that at the end of th
John Nichel wrote:
Rodney Green wrote:
John Nichel wrote:
Chances are, $buffer has the line break on it when you read it in
from the text file. Try striping off whitespace before you write...
while (!feof ($handle)) {
$buffer = rtrim ( fgets($handle, 1000) );
fwrite ($fhandle, "chow
Rodney Green wrote:
John Nichel wrote:
Chances are, $buffer has the line break on it when you read it in from
the text file. Try striping off whitespace before you write...
while (!feof ($handle)) {
$buffer = rtrim ( fgets($handle, 1000) );
fwrite ($fhandle, "chown $buffer:html
http:/
John Nichel wrote:
Chances are, $buffer has the line break on it when you read it in from
the text file. Try striping off whitespace before you write...
while (!feof ($handle)) {
$buffer = rtrim ( fgets($handle, 1000) );
fwrite ($fhandle, "chown $buffer:html
http://www.php.net/manual/
Rodney Green wrote:
Greetings!
I'm writing a script that will take the contents of a text file that has
several lines of user accounts and creates a shell script with chown
commands for each user in that text file. My problem is that when it
writes the shell script file it puts a line break af
> I have a basic feedback form with:
> your name
> your e-mail address
> E-Mail Subject
> Message
>
> The problem is the line breaks...
>
> For example, they might type in the following (between the dashed
> lines) into the Message textarea:
> --
> Hi,
>
>
Thank you all very much. Turns out it was yet another browser cache issue
and a quick reboot solved the problem. Minor modification of just two lines
and I'm back in business. It's the details that'll kill you, eh? :)
Final code...
Again much thanks to everyone who helped me.
--
Kevin St
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
Here's what your file contains:
ccadev:/# od -c TEST.txt
000L I N E O N E \r L I N E T W
020O \n L I N E T H R E E
034
Wordpad handles it. Notepad does not.
But you have different line terminators for each line
Later
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
Hi Phil,
> I have a form inserting data into a database. I'm using
> nl2br to add to the data enetered where appropriate.
> The data is then pulled out of the database and inserted
> into text fields for editing.
> Can anyone tell me how to remove the tags while
> maintaining the line breaks
Don't use nl2br on the data before it goes into the database. Only use it
when you are showing that data as html. That way when you pull it into a
textfield you will not have to worry about the
Rick
It is very nearly impossible . . . to become an educated person in a country
so distrustful of
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
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
> db and then outputting to the webp
check out the nl2br() function.
HTML does not recognize the line breaks, it needs for that.
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Matt Davis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March
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
34 matches
Mail list logo