266 lines
8.7 KiB
PHP
266 lines
8.7 KiB
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" xml:lang="en" lang="en"><!-- InstanceBegin template="/Templates/grandview.dwt" codeOutsideHTMLIsLocked="false" -->
|
|
<head>
|
|
<!-- InstanceBeginEditable name="doctitle" -->
|
|
<title>Grand View Photography ~ Contact</title>
|
|
<!-- InstanceEndEditable -->
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="description" content="Professional Photographer">
|
|
<meta name="keywords" content="photography, eric, taylor, weddings, Grand View, blog, pictures, Sr. Pictures, event photography, wedding photography, travel photography, canon, camera, pictures, photos, Professional">
|
|
<meta name="author" content="Eric Taylor">
|
|
<link rel="stylesheet" type="text/css" media="screen, projection" href="resources/master.css">
|
|
<link rel="shortcut icon" type="image/ico" href="http://eden.org/eric/favicon.ico">
|
|
|
|
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
|
|
</head><body>
|
|
|
|
<div id="header">
|
|
<div id="logo">
|
|
<span><img src="images/grandview-logo-white_small.gif" alt="Grand View Photography" width="323" height="67"></span> </div>
|
|
|
|
<div id="nav">
|
|
<ul>
|
|
<!-- InstanceBeginEditable name="nav" -->
|
|
<li id="t-home"><a href="grandview.html">home</a></li>
|
|
<li id="t-portfolio"><a href="portfolio.html">portfolio</a></li>
|
|
<li id="t-packages"><a href="packages.html">packages</a></li>
|
|
<li id="t-clients"><a href="images/clients/index.html">clients</a></li>
|
|
<li id="t-blog"><a href="./blog/index.html">blog</a></li>
|
|
<li id="t-contact"><a href="#" class="active">≈contact≈</a></li>
|
|
<!-- InstanceEndEditable -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
<div id="container">
|
|
<div id="main-body">
|
|
|
|
<div id="content"><!-- InstanceBeginEditable name="content" -->
|
|
|
|
|
|
<h4>Contact</h4>
|
|
<p>Feel free to call me or leave a message anytime at 480.577.1191</p>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function validateForm(form) {
|
|
|
|
if (form.form_element0.value == "") {
|
|
alert("Fields marked with * are required.");
|
|
return false;
|
|
}
|
|
|
|
if (form.form_element1.value == "") {
|
|
alert("Fields marked with * are required.");
|
|
return false;
|
|
}
|
|
|
|
if (form.form_element2.value == "") {
|
|
alert("Fields marked with * are required.");
|
|
return false;
|
|
}
|
|
|
|
if (form.form_element3.value == "") {
|
|
alert("Fields marked with * are required.");
|
|
return false;
|
|
}
|
|
|
|
}
|
|
// ]]>
|
|
</script> <?php
|
|
|
|
$form_message = 'Fill in the form below to send me an email.';
|
|
$email_address = '';
|
|
|
|
$form_element0 = $_POST['form_element0'];
|
|
$sent_message .= '
|
|
';$sent_message .= 'Your Name: '. $_POST['form_element0'];$sent_message .= '
|
|
';$form_element1 = $_POST['form_element1'];
|
|
$sent_message .= '
|
|
';$sent_message .= 'Your Email: '. $_POST['form_element1'];$sent_message .= '
|
|
';$form_element2 = $_POST['form_element2'];
|
|
$sent_message .= '
|
|
';$sent_message .= 'Subject: '. $_POST['form_element2'];$sent_message .= '
|
|
';$form_element3 = $_POST['form_element3'];
|
|
$sent_message .= '
|
|
';$sent_message .= 'Message: '. $_POST['form_element3'];$sent_message .= '
|
|
';$form_element4 = $_POST['form_element4'];
|
|
$sent_message .= '
|
|
';$sent_message .= 'What are you intrested in?: '. $_POST['form_element4'];$sent_message .= '
|
|
';$form_element5 = $_POST['form_element5'];
|
|
$sent_message .= '
|
|
';$sent_message .= 'Date of the photoshoot: '. $_POST['form_element5'];$sent_message .= '
|
|
';if (!eregi ("^([a-z0-9_]|\-|\.)+@(([a-z0-9_]|\-)+\.)+[a-z]{2,4}$", $email_address)) {
|
|
unset($email_address);
|
|
}
|
|
|
|
if (file_exists($tmp_name)){
|
|
if(is_uploaded_file($tmp_name)){
|
|
$file = fopen($tmp_name,'rb');
|
|
$data = fread($file,filesize($tmp_name));
|
|
fclose($file);
|
|
$data = chunk_split(base64_encode($data));
|
|
|
|
}
|
|
|
|
$headers="From:$form_element1\r\n" .
|
|
"MIME-Version: 1.0\r\n" .
|
|
"Content-Type: multipart/mixed;\r\n" .
|
|
"boundary=\"{$mime_boundary}\"";
|
|
|
|
$sent_message .= "This is a multi-part message in MIME format.\n\n" .
|
|
"--{$mime_boundary}\n" .
|
|
"Content-Type: text/plain; charset=\"iso-8859-1\"\n" .
|
|
"Content-Transfer-Encoding: 7bit\n\n" .
|
|
$sent_message . "\n\n";
|
|
|
|
$sent_message .= "--{$mime_boundary}\n" .
|
|
"Content-Type: {$type};\n" .
|
|
" name=\"{$name}\"\n" .
|
|
"Content-Transfer-Encoding: base64\n\n" .
|
|
$data . "\n\n" .
|
|
"--{$mime_boundary}--\n";
|
|
}
|
|
|
|
else
|
|
{
|
|
$headers="From:$form_element1\r\n" ."MIME-Version: 1.0\r\n" ."Content-Type: text/plain; charset=\"iso-8859-1\"\n";
|
|
}if($form_element0 && $form_element1 && $form_element2 && $form_element3 && $email_address)
|
|
{
|
|
$mailed=mail($email_address, $form_element3, $sent_message, $headers);
|
|
$form_message = 'Thank you, your email has been sent.';
|
|
}
|
|
|
|
else {
|
|
$form_message = 'Fill in the form below to send me an email.<br />Fields marked with * are required.';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="message-text">
|
|
<?php
|
|
echo $form_message;
|
|
?>
|
|
</div>
|
|
<br />
|
|
|
|
<form action="grandview.php"
|
|
method="post"
|
|
enctype="multipart/form-data"
|
|
onsubmit="return validateForm(this)">
|
|
<label>Your Name:</label> *
|
|
<br />
|
|
<input class="form-input-field"
|
|
type="text"
|
|
name="form_element0"
|
|
size="40" />
|
|
<br />
|
|
<br />
|
|
<label>Your Email:</label> *
|
|
<br />
|
|
<input class="form-input-field"
|
|
type="text"
|
|
name="form_element1"
|
|
size="40" />
|
|
<br />
|
|
<br />
|
|
<label>Subject:</label> *
|
|
<br />
|
|
<input class="form-input-field"
|
|
type="text"
|
|
name="form_element2"
|
|
size="40" />
|
|
<br />
|
|
<br />
|
|
<label>Message:</label> *
|
|
<br />
|
|
<textarea class="form-input-field"
|
|
name="form_element3"
|
|
rows="8"
|
|
cols="38">
|
|
</textarea>
|
|
<br />
|
|
<br />
|
|
<label>What are you interested in?:</label>
|
|
<br />
|
|
<select name="form_element4">
|
|
<option value="--------------">
|
|
--------------
|
|
</option>
|
|
|
|
<option value="Event Photography">
|
|
Event Photography
|
|
</option>
|
|
|
|
<option value="Fine Art Prints">
|
|
Fine Art Prints
|
|
</option>
|
|
|
|
<option value="Portrait Photography">
|
|
Portrait Photography
|
|
</option>
|
|
|
|
<option value="Wedding Photography">
|
|
Wedding Photography
|
|
</option>
|
|
</select>
|
|
<br />
|
|
<br />
|
|
<label>Date of the photoshoot:</label>
|
|
<br />
|
|
<input class="form-input-field" value="mm/dd/yy"
|
|
type="text"
|
|
name="form_element5"
|
|
size="40" />
|
|
<br />
|
|
<br />
|
|
<input class="form-input-button"
|
|
type="reset"
|
|
name="resetButton"
|
|
value="Reset" /> <input class="form-input-button"
|
|
type="submit"
|
|
name="submitButton"
|
|
value="Submit" />
|
|
</form>
|
|
|
|
<!-- InstanceEndEditable --></div>
|
|
<!-- end #content -->
|
|
|
|
|
|
</div>
|
|
<!-- end #main-body -->
|
|
|
|
</div>
|
|
<!--end #container-->
|
|
|
|
<hr color="#CCCCCC" noshade="noshade" size="1px" width="100%" />
|
|
<br />
|
|
<p style="font-size:9pt" align="center">© Grand View Photography & Eric Taylor 2006<br />
|
|
Member of the <a href="http://www.travelphotographers.net"><img src="images/tpn.gif" alt="Travel Photographers Network" border="0" align="absmiddle" /></a></p>
|
|
<br />
|
|
|
|
<!-- Start of StatCounter Code -->
|
|
<script type="text/javascript" language="javascript">
|
|
<!--
|
|
var sc_project=687663;
|
|
var sc_invisible=1;
|
|
var sc_partition=5;
|
|
var sc_security="2a046209";
|
|
var sc_remove_link=1;
|
|
//-->
|
|
</script>
|
|
|
|
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><img src="http://c6.statcounter.com/counter.php?sc_project=687663&java=0&security=2a046209&invisible=1" alt="web stats" border="0"> </noscript>
|
|
<!-- End of StatCounter Code -->
|
|
<!--GOOGLE TRACKER-->
|
|
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
|
</script>
|
|
<script type="text/javascript">
|
|
_uacct = "UA-616769-2";
|
|
urchinTracker();
|
|
</script>
|
|
<!--END GOOGLE TRACKER-->
|
|
|
|
</body><!-- InstanceEnd --></html>
|