Where in this form can I include code to redirect me to a specific page. This is a submission form by godaddy and I have to use it the way they have it… although they say I can modify it. Currently, on submission, it redirects me to the index page, although no where in the code I see how it does that and I want to be able to specify the exact page it redirects to. Thanks.
[code=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,”$valn”);
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”].”/”);
}
?>