HTML Form question
Out of context: Reply #8
- Started
- Last post
- 12 Responses
- hubb7designs0
I'm using GoDaddy's gdfrom.php:
<?php session_start(); ?>
<?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["HTT…...
} else {
header("Location: http://".$_SERVER["HTT…...
}
include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php';$securimage = new Securimage();
if ($securimage->check($_POST['capt... == false) {
// the code was incorrect
// handle the error accordingly with your other error checking// or you can do something really basic like this
die('The code you entered was incorrect. Go back and try again.');
}
?>