You can use this form to contact C.I.I. for any reason:
'; } else { $sent_from = "From: ".$_POST['email']; $mess = $_POST['name']." at "; if (getenv(HTTP_X_FORWARDED_FOR)) { $pipaddress = getenv(HTTP_X_FORWARDED_FOR); $mess .= "PIP: ".$pipaddress." via "; } $ipaddress = getenv(REMOTE_ADDR); $mess .= "IP: ".$ipaddress." said:\r\n".$_POST['message']; mail('cii@ciinet.org', $_POST['subject'], $mess, $sent_from); ob_end_clean(); header("Location: http://www.ciinet.org/index.html"); exit(); } $word_ok = "yes"; } else { $word_ok = "no"; } } else { $word_ok = false; } ?> SECURITY WORD MATCH
'; } else { echo 'SORRY, NOT THE RIGHT SECURITY WORD
'; } } ?>
Please enter your information and your message.
If an error is detected, you will be returned to the pre-filled in form to make corrections.
If there are no errors, your note is sent to C.I.I. and you are brought back to the home page.
The "security word" is treated as lowercase, so don't worry about capitalization.
SUBJECT REQUIRED
'; } if (empty($_POST['message'])) { $err_count++; echo 'MESSAGE REQUIRED
'; } if (!eregi('^[[:alnum:]][a-z0-9_\.\-]*@[a-z0-9\.\-]+\.[a-z]{2,4}$',trim($_POST['email']))) { $err_count++; echo 'VALID E-MAIL REQUIRED
'; } // now process form if ($err_count > 0) { echo ''.$err_count.' ERRORS DETECTED'; } else { $sent_from = "From: ".$_POST['email']; $mess = $_POST['name']." at "; if (getenv(HTTP_X_FORWARDED_FOR)) { $pipaddress = getenv(HTTP_X_FORWARDED_FOR); $mess .= "PIP: ".$pipaddress." via "; } $ipaddress = getenv(REMOTE_ADDR); $mess .= "IP: ".$ipaddress." said:\r\n".$_POST['message']; mail('cii@ciinet.org', $_POST['subject'], $mess, $sent_from); ob_end_clean(); header("Location: http://www.ciinet.org/index.html"); exit(); } $word_ok = "yes"; } else { $word_ok = "no"; } } else { $word_ok = false; } ?> SECURITY WORD MATCH
'; } else { echo 'SORRY, NOT THE RIGHT SECURITY WORD
'; } } ?>