PDA

View Full Version : Shayanjr (moneytreehouse.com)



shayanjr
04-26-2007, 06:53 PM
Can anyone tell me how and where I can find the php code to make my thank you page work?

AmaDee
04-26-2007, 07:20 PM
copy and paste this in the "inside body tag" of your page html making sure to change the colored part

<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "youremailaddress********.com";
$mailsubj = "Your Subject";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>