Okay, don't laugh - I've never configured a feedback form before. . .
I've created my simple form (name, address, email, etc) and all I want it to do is to send the results to my email address. Having never done a form before, I don't know what to put in my html code, or what I need to change in my gdform.php.
If anyone has done this, could you PLEASE clue me in? Following is a snippet of what is on my html form:
<FORM action="gdform.php" method="post" name="cdmember" id="cdmember">
Following is the gdform.php:
<?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("../data/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: http://".$_SERVER["HTTP_HOST"]."/$landing_page");
} else {
header("Location: http://".$_SERVER["HTTP_HOST"]."/");
}
?>
HELP!!!!!