You are here: Re: PHP HTML Form mail question « PHP Programming Language « IT news, forums, messages
Re: PHP HTML Form mail question

Posted by Andy Jeffries on 03/30/06 11:56

On Thu, 30 Mar 2006 10:35:32 +0200, Wayne wrote:

> Hi,
>
> I have recently added tried to update the feedback form on my page to be
> sent in HTML format.
>
> Problem is that when its submitted, I get the mail without the variable
> input, just the variable name.
>
> I have added the text version to it and both send fine, but still only the
> text version includes the variable input.
>
> HTML code taken directly from php.net example (See my form below).
>
> Can anyone advise how I can solve this ?

Because you've used single quotes on the line:

$message = '

If you wrap a string in single quotes variables are not substituted within
it. You need to wrap the content for $message in double quotes.

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

Navigation:

[Reply to this 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

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