> // // If page has not been submitted to itself, echo the form: if (!isset($_POST['submit'])) { // Mwa ha ha ha... Decoy action. $decoy = array('firstname','lastname','comment','subject','email','comments','text','address','description','checkthis','required','message','upload','download'); $default_one = $decoy[array_rand($decoy)]; $default_two = $decoy[array_rand($decoy)]; $default_three = $decoy[array_rand($decoy)]; $default_four = $decoy[array_rand($decoy)]; $default_five = $decoy[array_rand($decoy)]; $true_field='TARDIS'.date("YdmW").'6'; $false_field='DALEK'.date("Yd")."7".date("mW").'0'; // Get content from the WP Page // ?>

Feedback

* = required fields

FROM THE GJPI.ORG CONTACT FORM:"; $content .= "

Name: $name
"; $content .= "

Email: $email
"; $content .= "

Subject: $subject
"; $content .= "

Message: $message
"; $content .= "

-----
"; $subject = $subj . " : " . date("F j, Y"); $random_hash = md5(date('html', time())); //Create a unique boundary string (required) using MD5 // Define the headers we want passed. Each separated with \r\n $headers = "From: contactform@gjpi.org\r\nReply-To: contactform@gjpi.org"; // Add boundary string and mime type specification $headers .= "\r\nContent-Type: text/html; boundary=\"PHP-alt-".$random_hash."\""; // Send it off: $mail_sent = @mail( $to, $subject, $content, $headers ); if (isset($_POST['submit'])) { //For success:error reporting: $yay = "

Thank you!

"; $yay .= "

Your message has been sent!

"; $fail = "

Sorry, something went wrong.

"; $fail .="

Your message was not sent. Our sincere apologies!

"; echo $mail_sent ? $yay : $fail; } } ?> > // ?>