variables in e-mail 2nd

From: Date: Fri, 17 Oct 2003 14:09:48 +0000
Subject: variables in e-mail 2nd
Groups: php.general 
Request: Send a blank email to php-general+get-166467@lists.php.net to get a copy of this message
I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! Some code I use.... . . . $messagepart1 = ' <html> <head> <title>Free Subscription</title> </head> <body> <p>Somebody would like to have a free subscription!!!</p> '; $messagepart2 = (echo $salutation); $messagepart3 = ' </body> </html> '; $message = $messagepart1.$messagepart2.$messagepart3; . . . mail(me@me.com, "Free Subscription Application", $message, $headers); . . . The $salutation comes from the form and is handed over correctly, but the syntax for to display the value of the variable in the html e-mail seems to be the problem...

« previous php.general (#166467) next »