|
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]
|