Re: Passing Variables Into mail()????

From: Date: Wed, 25 Feb 2004 12:47:58 +0000
Subject: Re: Passing Variables Into mail()????
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-178832@lists.php.net to get a copy of this message
Problem solved, thanks Richard... ..You had my solution, but I don't know if it was entirely what you said... As it turns out, it makes a difference that my $message variable was enclosed only in single quotes, not double quotes... who knew? "Chase" <chase@graewolfe.com> wrote in message news:20040225124133.49436.qmail@pb1.pair.com... > 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 >

« previous php.general (#178832) next »