<?php
	// Start session.
	session_start();
	
	// Set a key, checked in mailer, prevents against spammers trying to hijack the mailer.
	$security_token = $_SESSION['security_token'] = uniqid(rand());
	
	if ( ! isset($_SESSION['formMessage'])) {
		$_SESSION['formMessage'] = 'Fill in the form below to send me an email.';	
	}
	
	if ( ! isset($_SESSION['formFooter'])) {
		$_SESSION['formFooter'] = ' ';
	}
	
	if ( ! isset($_SESSION['form'])) {
		$_SESSION['form'] = array();
	}
	
	function check($field, $type = '', $value = '') {
		$string = "";
		if (isset($_SESSION['form'][$field])) {
			switch($type) {
				case 'checkbox':
					$string = 'checked="checked"';
					break;
				case 'radio':
					if($_SESSION['form'][$field] === $value) {
						$string = 'checked="checked"';
					}
					break;
				case 'select':
					if($_SESSION['form'][$field] === $value) {
						$string = 'selected="selected"';
					}
					break;
				default:
					$string = $_SESSION['form'][$field];
			}
		}
		return $string;
	}
?><!doctype html>  
<html lang="en">
<head>

	<!-- Aspen 2.0.0 -->

	
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="robots" content="index, follow" />
		<meta name="generator" content="RapidWeaver" />
		<link rel="apple-touch-icon" sizes="167x167" href="https://dhnicycling.org/resources/medium.png" />
<link rel="apple-touch-icon" sizes="180x180" href="https://dhnicycling.org/resources/IMG_0567.jpg" />
<link rel="apple-touch-icon" sizes="152x152" href="https://dhnicycling.org/resources/small.png" />
<link rel="mask-icon" href="https://dhnicycling.org/resources/IMG_0567.jpg" color="rgba(255,255,255,1.00)" /><link rel="icon" type="image/png" href="https://dhnicycling.org/resources/favicon_medium.png" sizes="32x32" />
<link rel="icon" type="image/png" href="https://dhnicycling.org/resources/favicon_small.png" sizes="16x16" />
<link rel="icon" type="image/png" href="https://dhnicycling.org/resources/favicon_large.png" sizes="64x64" />

	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="baseurl" content="https://dhnicycling.org/">
	<title>Contact | Welcome!</title>
	<link rel="stylesheet" type="text/css" media="all" href="../rw_common/themes/aspen/consolidated.css?rwcache=806905935" />
		
	
	
	
	
	
</head>
<body>
  <div class="figure_bg">
    <div class="figure_cropping">
      <div class="figure-container parallax">
        <div id="theme_input">Dignity Health Neurological Institute Cycling Team</div>
        <img src="../rw_common/images/IMG_7854.jpg" alt="Our team in 2019">
      </div>
    </div><!-- Figure Crop -->
    <figure class="theme max_width_wrap">
      <header class="theme cf" data-baseurl="https://dhnicycling.org/">
        <img src="../rw_common/images/IMG_0567.jpg" width="3283" height="2667" alt="Welcome!"/>
        <div class="nav_btn offest"></div>
        <div class="nav_expand">
          <div class="nav_close">+</div>
          <nav class="theme offest cf">
            <ul class="theme cf"><li><a href="../" rel="">Home</a></li><li><a href="../page0/page0.html" rel="">About</a></li><li><a href="../photos/" rel="">Photos</a></li><li><a  class="current" href="./" rel="">Contact</a></li></ul>
          </nav>
        </div>
        <div class="float_right contact_info">
          <ul>
            <li class="special-li">
              
              <a class="cartloom-viewcart">
                <span class="cartloom-cart-count">0</span>
                <span class="social-bag"></span>
              </a>
            </li>
          </ul>
        </div>
      </header>
      <section class="main_heading offest cf">
        <h1 class="site_title">Welcome!</h1>
        <div class="heading_break">
          
          <div class="social_icons">
            <ul>
            </ul>
          </div>
          <span class="theme_scroll_btn">
            <a href="#">
              <span class="mouse">
                <span>
                </span>
              </span>
            </a>
          </span>
        </div>
      </section>
    </figure>
  </div>
  <aside class="theme max_width_wrap cf">
    <div class="col_a"></div>
    <div class="col_b">
      <div class="inner_content">
        <h2 class="site_slogan"></h2>
        
      </div>
    </div>
  </aside>
  <div class="break_degree"><div></div></div>
  <main class="theme cf">
    <div class="max_width_wrap_content">
      
<div class="message-text"><?php echo $_SESSION['formMessage']; unset($_SESSION['formMessage']); ?></div><br />

<form class="rw-contact-form" action="./files/mailer.php" method="post" enctype="multipart/form-data">
	 <div>
		<label>Your Name</label> *<br />
		<input class="form-input-field" type="text" value="<?php echo check('element0'); ?>" name="form[element0]" size="40"/><br /><br />

		<label>Your Email</label> *<br />
		<input class="form-input-field" type="text" value="<?php echo check('element1'); ?>" name="form[element1]" size="40"/><br /><br />

		<label>Subject</label> *<br />
		<input class="form-input-field" type="text" value="<?php echo check('element2'); ?>" name="form[element2]" size="40"/><br /><br />

		<label>Message</label> *<br />
		<textarea class="form-input-field" name="form[element3]" rows="8" cols="38"><?php echo check('element3'); ?></textarea><br /><br />

		<div style="display: none;">
			<label>Spam Protection: Please don't fill this in:</label>
			<textarea name="comment" rows="1" cols="1"></textarea>
		</div>
		<input type="hidden" name="form_token" value="<?php echo $security_token; ?>" />
		
		<input class="form-input-button" type="submit" name="submitButton" value="Submit" />
	</div>
</form>

<br />
<div class="form-footer"><?php echo $_SESSION['formFooter']; unset($_SESSION['formFooter']); ?></div><br />

<?php unset($_SESSION['form']); ?>

      
    </div>
  </main>
  <footer class="theme max_width_wrap_content cf">
    <div class="float_left"></div>
    <div class="float_right"></div>
  </footer>
  <div id="config_theme"></div>
  <script>window.jQuery || document.write('<script src="../rw_common/themes/aspen/assets/js/jquery.js">\x3C/script>')</script>
  <script type="text/javascript" src="../rw_common/themes/aspen/assets/js/function-min.js"></script>
</body>
</html>