Forum Moderators: coopster
$loadtime = $_POST['loadtime'];
$checkbox = $_POST['antispam'];
$robotest = $_POST['robotest'];
$totaltime = time() - $loadtime;
if($totaltime < 7) {
echo('<font color="#FFFFFF">Please fill in the form before submitting!</font>');
echo'<meta http-equiv="refresh" content="5;url=contact.html">';
}
$checkbox = $_POST['antispam'];
$robotest = $_POST['robotest'];
$totaltime = time() - $loadtime;
if($robotest != "" && $checkbox = " ")
{
echo '<font color="#FFFFFF">Please refrain from SPAMMING!</font>';
}
elseif($checkbox=="")
{
echo $checkbox;
echo'<font color="#ffffff">Go back and click on the check box please.</font>';
echo'<meta http-equiv="refresh" content="10;url=contact.html">';
}
else
{ $fname = addslashes(strip_tags($_POST['fname']));
$lname = addslashes(strip_tags($_POST['lname']));
$address= addslashes(strip_tags($_POST['address']));;
$city= addslashes(strip_tags($_POST['city']));;
$state= addslashes(strip_tags($_POST['state']));;
$zip= addslashes(strip_tags($_POST['zip']));;
$email = Trim(stripslashes($_POST['email']));
$phone = addslashes(strip_tags($_POST['phone']));
$company =addslashes(strip_tags($_POST['company']));
$coaching=$_POST['coaching'];
$career=$_POST['career'];
$business=$_POST['business'];
$brainstorming=$_POST['brianstorming'];
$recipient = "gilead@gileadwebservices.com";
$name = $fname . ' ' . $lname;
$subject = $name.' is making contact!';
$domain="branch.com";
$headers = "Reply-To: $name <$email>\r\n";
$headers.= "Return-Path: no-reply <no-reply@$domain>\r\n";
$headers.= "From: no-reply <no-reply@$domain>\r\n";
$headers.= "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers.= "X-Priority: 3\r\n";
$headers.= "X-Mailer: PHP". phpversion() ."\r\n";
$message = '<html><body>';
$message.= '<p>Bill, my name is '.$name.'</p>';
$message.= '<p>my Company is '.$company.'</p>';
$message.= '<p>my Address is '.$address.'</p>';
$message.= '<p>my City is '.$city.'</p>';
$message.= '<p>my State is '.$state.'</p>';
$message.= '<p>my Zip is '.$zip.'</p>';
$message.= '<p>My Phone is '.$phone.'</p>';
$message.= '<p>My Email is '.$email.'</p>';
$message.= '<p>I seek your assistance with these services:</p>';
$message.= '<p>Is is COACHING? ' .$coaching.'<br/>';
$message.= '<p>Is is CAREER DIRECTION? ' .$career.'<br/>';
$message.= '<p>Is is BUSINESS DEVELOPMENT? ' .$business.'<br/>';
$message.= '<p>Is is BRAINSTORMING? ' .$brainstoming.'<br/>';
$message.= '<p>Thank you!</p>';
mail($recipient, $subject, $message, $headers) or die("Error!");
echo'<meta http-equiv="refresh" content="10;url=contact.html">';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href=""https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap" rel="stylesheet"">
<style>
body{background-color:#010415;}
h2, h3{color:#FFFFFF; font-family: 'Merriweather', font-size: calc(32px + 1vw);}
</style>
</head>
<body>
<h2>Thank You! We will Contact You Shortly-<br /></h2>
<h3>You will be redirected back to the Contact page in 10 seconds...</h3>
</body>
</html> .robotic{visibility:hidden; } <form method="post" action="processcontact.php" name="contact">
<div class="indent"><label>Name:<span class="ast">*</span></label><br />
<label>First Name:</label><input type="text" name="fname" value="" required>
<label>Last Name:</label> <input type="text" name="lname" value="" required><br /><p/>
<label>Address:</label><input type="text" name="address" value=""><p />
<label>City:</label><input type="text" name="city" value="">
<label>State:</label><input type="text" name="state" value="">
<label>Zip:</label><input type="text" name="zip" value=""><p />
<label>Phone:</label> <input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" required><span class="ast">*</span><br /><p/>
<label>Email:</label> <input type="email" name="email" required placeholder="Please enter a valid email address."><span class="ast">*</span><br /><p/>
<label>Company:</label><input type="text" name="company" value="">
<label><h1>How can we help you?</h1></label> <br />
<input type="checkbox" name="coaching" value="yes">Coaching and Mentoring<br />
<input type="checkbox" name="career" value="yes">Career Direction<br />
<input type="checkbox" name="business" value="yes">Business Development<br />
<input type="checkbox" name="brainstorming" value="yes">Brainstorming<br />
<h3>I am not a robot!
*<input type="checkbox" name="antispam"></h3>
<!-- The following field is for robots only, invisible to humans: -->
<p class="robotic" id="hpot">
<label>If you're human leave this blank:</label>
<input name="robotest" type="text" id="robotest" class="robotest" />
</p>
<input type="hidden" name="loadtime" value="<?php echo time(); ?>">
<br />
<div class="indent"><input type="submit" name="submit" value="Submit"> <input type="Reset"></div>
</form> _my_ first thought was that the server has updated its php version