Thank you in advance if you can help. Godaddy is leaving me hanging on this. I switched my deluxe hosting from Win to Lin to learn wordpress. In doing this, my active subdomain sites no longer have their form mail working. I switched from an gdform.asp to their gdform.php and have the forms working (I get the emails) however it defaults back to the root index page after form is submitted. I need them all to go to at least 1 page in one of my subdomain sites. Godaddy is completely unwilling to help with a seemingly easy request & I know nada about php programming. In the meantime, I have 3 small business sites that are kind of dead in the water. Would someone here be able and willing to lend me a hand with this? It would REALLY be appreciated. Their provided form is gdform.php: (it reads like Latin to me) :'( Can I modify this file or do I need a new php script?
<?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");
$file = $_SERVER['DOCUMENT_ROOT'] . "/../data/gdform_" . $t;
$fp = fopen($file,"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"]."/");
}
?>
18775_.php