Re: Passing Variables Into mail()????
| From: | Chase | Date: | Wed, 25 Feb 2004 12:41:27 +0000 |
| Subject: | Re: Passing Variables Into mail()???? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178829@lists.php.net to get a copy of this message | ||
That didn't seem to work Richard... Now this is what my resulting email
looks like...
Submit Date: $submit_date
IP Address: $ip_address
Dealer Number: $dealer_number
Employee Name: $tester_name
Module / Screen Name: $module_name
Report:
$report
"Richard Davey" <rich@launchcode.co.uk> wrote in message
news:1825686289.20040225095039@launchcode.co.uk...
> Hello Chase,
>
> Wednesday, February 25, 2004, 5:26:14 AM, you wrote:
>
> C> None of the variables that are displayed on the result page or
> C> injected into the database are showing in the email that I receive
> C> from the form.
>
> C> $message = '
> C> <html>
> C> <body>
> C> <p>The following information was added to the v5 tracking record:</p>
> C> <p><strong>Submit Date: <? echo $submit_date;
> C> ?></strong><br>
> C> <strong>IP Address: <? echo $ip_address; ?><br>
>
> You shouldn't be echo'ing from inside a variable! Try this instead:
>
> $message = "
> <html>
> <body>
> <p>The following information was added to the v5 tracking record:</p>
> <p><strong>Submit Date: $submit_date</strong><br>
> <strong>IP Address: $ip_address<br>
> ";
>
> etc.. you get the idea.
>
> --
> Best regards,
> Richard Davey
> http://www.phpcommunity.org/wiki/296.html