File: /home/ultimatemeditati/~ultim/contact.php
<?
if ($_SERVER['REQUEST_METHOD']=='POST') {
require('classes/Mail.php');
$name= $_POST['name'];
$whichsession= $_POST['whichsession'];
$email= $_POST['email'];
$phone= $_POST['phone'];
$comment= $_POST['comment'];
$message=
'Email from ultimate meditation website:'."\n\n\n".
'Name: '."\n".$name."\n\n".
'Which Session: '."\n".$whichsession."\n\n".
'Email: '."\n".$email."\n\n".
'Message: '."\n".$comment."\n\n";
$to = array(
'[email protected]'
);
//$headers = 'From: [email protected]';
//mail($to, 'Subject line', $message, $headers);
$m= new Mail; // create the mail
//$m->From("Matter contact page");
$m->From($email);
$m->To($to);
$m->Subject("Email from ultimate meditation website");
$m->Body($message); // set the body
$m->Send(); // send the mail
//if ((isset($_POST['submit'])) && ($_POST['submit'])) {
header('location: thank-you.html#form');
//}
}
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ULTIMATE MEDITATION | Contact | Turramurra</title>
<meta name="title" content="Ultimate Meditation - North Shore Meditation">
<meta name="keywords" content="Ultimate Meditation free introductory talks">
<meta name="description" content="Ultimate Meditation - Free introductory talks">
<link href="css/ultimate_meditation.css" rel="stylesheet" type="text/css" />
<link href="css/um_sIFR-screen.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="js/formcheck/theme/white/formcheck.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/mootools-1.2.1-core-yc.js"></script>
<script type="text/javascript" src="js/p.js"></script>
<script type="text/javascript" src="js/formcheck/lang/en.js"> </script>
<script type="text/javascript" src="js/formcheck/formcheck.js"> </script>
<script type="text/javascript">
window.addEvent('domready', function(){
var myCheck = new FormCheck('enquiryform', {
});
});
</script>
</head>
<body id="contact-page">
<div id="top"> </div>
<div id="main_menu">
<div id="menu_div">
<a id="home-nav" href="index.html"><span>Home</span></a>
<a id="what-is-meditation-nav" href="what-is-meditation.html"><span>What is meditation?</span></a>
<a id="why-meditate-nav" href="why-meditate.html"><span>Why meditate?</span></a>
<a id="benefits-nav" href="meditations-benefits.html"><span>Meditations benefits</span></a>
<a id="learn-more-nav" href="learn-meditation.html"><span>Learn meditation</span></a>
<a id="about-nav" href="about.html"><span>About</span></a>
<a id="contact-nav" href="contact.php"><span>Contact</span></a>
<div class="clear"></div>
</div>
</div>
<div id="intro">
<div id="intro_content" class="welcome_txt">
<div id="heading_div"> <img src="images/contact_heading.gif" alt="Contact" /></div>
<p>If you have any questions regarding meditation<a href="#why"></a> and how it can benefit your life please contact Ultimate Meditation:<br />
<br />
Peter Johnston<br />
<br />
E: <a href="mailto:[email protected]">[email protected]</a><br />
M: 0425 239 874 <br />
Balgowlah NSW 2093 </div></div>
<div id="program"><div id="program_content" class="contact_info"><div id="form" class="heading_div"><img src="images/program.gif" alt="Program" /></div>
Peter gives <strong>free introductory talks</strong> on a regular basis
at his home in Balgowlah
on alternate Monday or
Wednesday nights at 7.30pm. Please fill out the form below ,and we will send
you the address, with directions if required.
<br />
<form id="enquiryform" method="post" action="contact.php">
<br>
<table class="bodycopy" width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="199" height="30">Name</td>
<td width="301" height="30"> <input type="text" size="28" maxlength="256" name="name" class="main-form validate['required']" /></td>
</tr>
<tr>
<td height="30">Session I would like to attend</td>
<td height="30"><select name="whichsession" class="main-form validate['required']">
<option value="{select}">{select}</option>
<option value="Mon Sept 2">Mon Sept 2</option>
<option value="Wed Sept 11">Wed Sept 11</option>
<option value="Mon Sept 16">Mon Sept 16</option>
<option value="Wed Sept 25">Wed Sept 25</option>
<option value="Mon Sept 30">Mon Sept 30</option>
<option value="Wed Oct 9">Wed Oct 9</option>
<option value="Mon Oct 14">Mon Oct 14</option>
<option value="Wed Oct 23">Wed Oct 23</option>
<option value="Wed Oct 30">Wed Oct 30</option>
select></td>
</tr>
<tr>
<td height="30">Email</td>
<td height="30"><input style="margin-top:7px;" type="text" size="28" maxlength="256" name="email" class="main-form validate['required','email']" /> </td>
</tr>
<tr>
<td height="30" valign="top">Message</td>
<td height="30"><textarea name="comment" rows="5" cols="28" style="overflow:auto;" class="welcome_txt"></textarea></td>
</tr>
<tr>
<td height="10"> </td>
<td height="10"> </td>
</tr>
<tr>
<td height="30"> </td>
<td height="30"> please fill in all fields<br /> <input type="submit" name="submit" value="Submit"> </td>
</tr>
</table>
</form></div>
</div>
<div class="contact-base"><br />Thanks to Richard Yaker for photos of Ram Jhula bridge and sunrise
over the Ganges at Rishikesh, India.<br />
<br />
Website design and development: <a href="http://harleyjohnston.com/" target="_blank">Harley Johnston
</a></div>
<div id="base"> </div>
<div class="contact_info" id="contact_info">
<div id="contact_content">
<div style=" padding-top:30px;" align="center">
<a href="http://www.ultimatemeditation.com.au/index.html">Home</a> -
<a href="http://www.ultimatemeditation.com.au/what-is-meditation.html">What is Meditation?</a> -
<a href="http://www.ultimatemeditation.com.au/why-meditate.html">Why Meditate?</a> -
<a href="http://www.ultimatemeditation.com.au/meditations-benefits.html">Benefits</a> -
<a href="http://www.ultimatemeditation.com.au/learn-meditation.html">Learn Meditation</a> -
<a href="http://www.ultimatemeditation.com.au/contact.php">Contact</a>
<a href="http://www.ultimatemeditation.com.au/site-map.html">Site Map</a>
</div>
</div>
</div>
</body>
</html>