$val) { $$key = $val; }; include('class.passgen.php'); $passGen = new passGen(5); $validate = 0; if ($_POST['act']=="1") { $hash = $_POST['hash']; $pass = $_POST['pass']; if($passGen->verify($pass, $hash)){ $validate = 1; } else { $error="Sorry, validation not passed!";}; if ($error=="") { $subj="New Moving Gardens Web Request!"; $body="=======REQUEST DETAILS========= \n\n"; $body.="Full Name: ".$ffield1."\n"; $body.="E-mail: ".$ffield2."\n"; $body.="Phone: ".$ffield3."\n"; $body.="Garden Location: ".$ffield4."\n"; $body.="Garden Interests: ".$ffield5."\n"; $body.="Garden Notes: ".$ffield6."\n"; mail ("info@movinggardens.com", $subj, $body, "From:".$ffield2); $ffield1=addslashes($ffield1); $ffield2=addslashes($ffield2); $ffield3=addslashes($ffield3); $ffield4=addslashes($ffield4); $ffield5=addslashes($ffield5); $ffield6=addslashes($ffield6); //save to file $h = fopen('requests/'.date("m-d-Y-H-i-s").'.txt', 'w'); fputs($h, $body); fclose ($h); $query = mysqli_query($db_conn, "INSERT INTO `mg_requests` (`timestamp`, `field1`, `field2`, `field3`, `field4`, `field5`, `field6`) VALUES ('".mktime()."', '$ffield1', '$ffield2', '$ffield3', '$ffield4', '$ffield5', '$ffield6')") or die (mysqli_error($db_conn)); echo ''; exit;};}; ?> Moving Gardens, LLC | Contact
'.$error.'

';}; ?>
password(0, 1); echo $passGen->images('font', 'gif', 'f_','16', '20'); echo '   '; ?>
  • Nancy
    Marshall
    45 years experience