<!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>That's the Spot Pilates | Contact Me | North Seattle, WA</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="description" content="Contact me to schedule or for more information about classes near the Ballard, Phinney Ridge, Crown Hill" />
<meta name="keywords" content="Pilates Ballard, Phinney Ridge, South Lake Union, North Seattle Pilates Classes" />
<link rel="stylesheet" type="text/css" href="ttsp.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]-->
<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "index.html";
}
//-->
</script>
<script language=javascript>
<!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
location.replace("http://mobile.html");
}
-->
</script>
</head>
<body>
<div id="container-support" align="center">
<div id="menubar">
<table border="0" cellspacing="0" cellpadding="0" width="600" align="left">
<tr>
<td>
<ul>
<li><a href="index.html">about</a></li>
<li><a href="rates.html">rates & classes</a></li>
<li><a href="testimony.html">testimony</a></li>
<li><a href="support.html"><u><i>contact</i></u></a></li>
</ul>
</td>
<td align="center">
<a href="index.html"><img src="images/ttsp_logo.png" /></a>
</td>
</tr>
</table>
</div><!--end menubar div-->
</div><!--end container-support div-->
<div id="contact">
<h3>Thank you for contacting That's the Spot Pilates.</br><a href="index.html">Return to Home Page</h3></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: info@isaiahterrydesigns.com' . "\r\n";
//Creates intelligible subject line that also shows me where it came from
$subject = 'Inquiry from Contact Page';
//Sends mail to me, with elements created above
mail ('andreajmurphy@comcast.net', $subject, $body, $from);
?>
<br />
<a href="http://www.thatsthespotpilates.com/wp-content/uploads/2012/02/regform1.pdf">Click here to print my registration form</a>
</div><!--end contact div-->
<div id="footer-nav">
<table border="0" cellspacing="0" cellpadding="0" width="720" align="center">
<tr>
<td align="center">
<h9 style="color:#959595" align="center">© 2015 That's the Spot Pilates. All Rights Reserved.</h9>
</td>
<td align="center">
<h6><a href="http://isaiahterrydesigns.com/">Isaiah Terry Designs</a></h6>
</td>
</tr>
</table>
</div>
</div><!--end footer-nav div-->
</body>
</html>