Reply to Re: string prob

Your name:

Reply:


Posted by Nicholas Sherlock on 10/01/28 11:32

Rainer Wiener wrote:
> Hi,
>
> I got this line:
>
> $from = 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
>
> but when I do an echo I get only this:
>
> From: Birthday Reminder
>
> what is wrong?

Look at the HTML source. It *is* printing what you want. The problem is
that '<' and '>' are interpreted as being an HTML tag.

Use &lt; for < and &gt; for >, or just use the HTML entities function:

http://www.php.net/manual/en/function.htmlentities.php

Cheers,
Nicholas Sherlock

[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

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