You are here: Re: Feedback Email setup « PHP Programming Language « IT news, forums, messages
Re: Feedback Email setup

Posted by Colin Fine on 09/23/06 15:25

ianbarton@adam.com.au wrote:
> Thanks Erwin for your reply.
>
> I know nothing about PHP but since I started this exercise I have
> become a little, just a little more familiar with this particular
> function. Unfortunately I wouldn't know enuff to know whether it is
> good or bad code so I will have to take your word for that.
>
> In your reply you state "No, you want to put there the from address.
> Since this script automatically sends the email, you'll have to tell it
> what the from-field is. Most probably you can put in there any valid
> emailaddress you own, like: info@adam.com"
>
> The email address that I want to put in there is that which is supplied
> in the feedback form field I have titled "UserEmail" The trouble is I
> don't know what the syntax is to do this. I have tried many variations
> (eg)
>
> $header .= "From: Web Form <UserEmail>\n";
> $header .= "From: <UserEmail>\n";
> $header .= "From: 'UserEmai'l>\n";
> $header .= "From: <$UserEmail>\n";
> $header .= "From: $UserEmail\n";
>
> Am I trying to do something that just isn't possible in PHP. I have
> done this in ASP on another webpage but I can't get it to work here.
>
Probably

$_REQUEST['UserEmail']

(or $_GET or $_POST instead of $_REQUEST if you know which HTTP method
is being used. But $_REQUEST will do for either.)

Colin

 

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

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