Re: Passing Variables Into mail()????
| From: | Richard Davey | Date: | Wed, 25 Feb 2004 09:50:39 +0000 |
| Subject: | Re: Passing Variables Into mail()???? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178820@lists.php.net to get a copy of this message | ||
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; ?></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