Forum Moderators: coopster
mail($to, $subject, $msg, $mailheaders);
The variable, $to, in my example might be called something else, which is fine, but whatever it is, look for it farther up in the script, and make sure it's set to your email address, like:
$to = "you@yourdomain.com";
I hope this helps.
<?php
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET")
{
$query_vars = $_GET;
}
elseif ($request_method == "POST")
{
$query_vars = $_POST;
}
reset($query_vars);
$t = date("U");
$fp = fopen("ssfm/gdform_$t","w");
while (list ($key, $val) = each ($query_vars))
{
fputs($fp,"<GDFORM_VARIABLE NAME=$key START>\n");
fputs($fp,"$val\n");
fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n");
if ($key == "redirect")
{
$landing_page = $val;
}
}
fclose($fp);
if ($landing_page!= "")
{
header("Location: [".$_SERVER["HTTP_HOST"]."...]
}
else
{
header("Location: [".$_SERVER["HTTP_HOST"]."...]
}
?>