MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/sb_web/b2920/afamfarmersca.org/
File Upload :
Current < : /hermes/sb_web/b2920/afamfarmersca.org/emailform1.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Kern Comprehensive Cancer Awareness Partnership</title>
 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <meta name="description" content="Kern County Community Resources Guide />
  <meta name="keywords" content="Kern, County, California, Health, Community, Resources, Cancer, Awareness, Guide, Directory Services, Support Services, Links for Life, Social Services, Medical Services, Burial, Organ Donation, Child Care, Transportation Directory, Legal Directory, Food Services Directory, Medical Services, Coverage Assistance, Medical Screenings, Hospice, Respite, Care, Durable Medical Equipment, Blood Banks, Marrow Services, Prosthesis, Lymphedema Sleeves, Medication Programs, Drug Progams, Kern County, Local organizations, National organizations." />
  
<link rel="stylesheet" type="text/css" href="kccap.css"/>
<!--[if IE 6]>
	<link rel="stylesheet" href="ie6.css" type="text/css" media="screen">
	<![endif]-->

<!--[if lte IE 6]>
   <style type="text/css">
   /*<![CDATA[*/ 
	html {overflow-x:auto; overflow-y:hidden;}
   /*]]>*/
   </style>
<![endif]-->

</head>

<body bgcolor="#121212">
					
					<div id="container" align="center">
			
					<div id="menubar">
					<table border="1" cellspacing="0" cellpadding="0" width="1100" bgcolor="#FFFFFF" align="center">
					<tr>
					<td>
					<ul>
					<li><a href="KernCCAP.html">Home</a></li>
					<li><a href="KernCCAP.html">Menu1</a></li>
					<li><a href="KernCCAP.html">Menu2</a></li>
					<li><a href="KernCCAP.html">Menu3</a></li>
					<li><a href="KernCCAP.html">Menu 4</a></li>
					<li><a href="KernCCAP.html">Menu5</a></li>
					<li><a href="directory.html">Directory</a></li>
					</ul>
					</td>
					</tr>
					</table>
					</div><!--end menubar div-->
					
		
					<div id="thankyou" align="center">
					<h4>Thank you for contacting KernCCAP.org.</br><a href="index.html">Return to Home Page</h4></a>
					
					<?php
//This is a very simple PHP script that outputs the name of each bit of information (that corresponds to the <code>name</code> attribute for that field) along with the value that was sent with it right in the browser window, and then sends it all to an email address (once you've added it to the script).

if (empty($_POST)) {
	print "<p>No data was submitted.</p>";
	print "</body></html>";
	exit();
}

//Creates function that removes magic escaping, if it's been applied, from values and then removes extra newlines and returns to foil spammers. Thanks Larry Ullman!
function clear_user_input($value) {
	if (get_magic_quotes_gpc()) $value=stripslashes($value);
	$value= str_replace( "\n", '', trim($value));
	$value= str_replace( "\r", '', $value);
	return $value;
	}



if ($_POST['comments'] == 'Please share any comments you have here') $_POST['comments'] = '';	

//Create body of message by cleaning each field and then appending each name and value to it

$body ="Here is the data that was submitted:\n";

foreach ($_POST as $key => $value) {
	$key = clear_user_input($key);
	$value = clear_user_input($value);
	if ($key=='extras') {
		
	if (is_array($_POST['extras']) ){
		$body .= "$key: ";
		$counter =1;
		foreach ($_POST['extras'] as $value) {
				//Add comma and space until last element
				if (sizeof($_POST['extras']) == $counter) {
					$body .= "$value\n";
					break;}
				else {
					$body .= "$value, ";
					$counter += 1;
					}
				}
		} else {
		$body .= "$key: $value\n";
		}
	} else {

	$body .= "$key: $value\n";
	}
}

extract($_POST);
//removes newlines and returns from $email and $name so they can't smuggle extra email addresses for spammers
$email = clear_user_input($email);
$name = clear_user_input($name);

//Create header that puts email in From box along with name in parentheses and sends bcc to alternate address
$from='From: '. $email . "(" . $name . ")" . "\r\n" . 'Bcc: isaiah_terry@hotmail.com' . "\r\n";



//Creates intelligible subject line that also shows me where it came from
$subject = 'A Message From KernCCAP.org Website';

//Sends mail to me, with elements created above
mail ('info@kernccap.org'), $subject, $body, $from);
?>
					</div><!--end thankyou div-->
					
					 
					 <div id="logo">
					</br>
					</br>
					</br>
					
					<a href="index.html"><img src="images/image002.png" width="250" height="165" alt="Kern Comprehensive Cancer Awareness Partnership" title="KernCCAP.org"></h4></a>
					<h6>
					The address can go here</br>
					Address Line 2</br>
					Phone Number</br>
					info@kernccap.org
					</h6>
					</div><!--end logo div-->
					
					
					
					
					<div id="footer" align="bottom">
					<h6 style="color:#000000" align="center">&copy; 2014 Kern Comprehensive Cancer Awareness Partnership. 
					<a href="http://isaiahterrydesigns.com">Isaiah Terry Designs.</a> All Rights Reserved.</h6> 

					</div><!--end footer div-->
		
					</div><!--end container div-->
		
	
			
</body>
</html>