Reply to Re: [PHP] Re: Send in a form there email

Your name:

Reply:


Posted by "Richard Lynch" on 07/25/05 04:12

On Sun, July 24, 2005 8:22 am, Thomas Bonham said:
> When you use \n in the string and then try to echo it back it doesn't
> echo back right. But when you send it the \n works.

Oh, it echos back correctly...

But your BROWSER, which you were using to view it, IGNORES newlines. Or,
more properly, it treats one or more whitespace characters (space,
newline, tab) as a single space.

If you use "View Source" in your browser, you'd see more what you expect.

Or you could use http://php.net/nl2br for HTML output.

Or you could use PRE tags.

Or you could use PHP from the command line.

Or you could use some kind of software to see the raw output of your
web-server, though that's probably a bit more trouble than needed...

> Thomas Bonham wrote:
>> Hello All,
>> I'm trying to format a the variables for the form to send them there
>> email. What I need is how do I put a new line in the string that is be
>> send.

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация