<?php
require_once("header.php");
$status=NULL;
if(isset($_GET['status']))
{
    $status=$_GET['status'];
}
?>
<section class="contact white-bg page-section-ptb"> 
  <div class="container">
    <div class="row">
      <div class="col-lg-12">
        <div class="section-title text-center">
        <div class="title-separator">
           <i class="glyph-icon flaticon-food-27"></i>
         </div>
          <h2> <span class="text-orange">Sign </span>Up</h2>
                <p>If you already have an account <a href="login.php"><span style="font-size:20px;text-decoration: underline;"> Login Here</span></a></p>
      </div>
      </div>
     </div>
    <div class="row mt-30">
        <div class="col-lg-3"></div>
        <div class="col-lg-6">
         <form class="form-horizontal" method="post" action="action.php" onsubmit="return checkForm(this);">
             <fieldset>
           <div class="contact-form">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12">
                  <div class="form-field">
                  <i class="fa fa-user"></i>
                  <input id="name" type="text" placeholder="Name*" class="placeholder" name="name" required>
              </div>
              <div class="form-field">
                  <i class="fa fa-envelope-o"></i>
                 <input type="email" placeholder="Email*" class="placeholder" name="email" required>
               </div>
               <div class="form-field">
                  <i class="fa fa-phone"></i>
                  <input id="phone" type="text" placeholder="Phone*" class="placeholder" name="phone" required>
              </div>
              <div class="form-field">
                  <i class="fa fa-key"></i>
                 <input  placeholder="Password*" title="Password must contain at least 6 characters, including UPPER/lowercase and numbers" type="password" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" name="pwd1" onchange="
  this.setCustomValidity(this.validity.patternMismatch ? this.title : '');
  if(this.checkValidity()) form.pwd2.pattern = RegExp.escape(this.value);
">
               </div>
               <div class="form-field">
                  <i class="fa fa-key"></i>
                <input  placeholder="Confirm Password*" title="Please enter the same Password as above" type="password" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" name="pwd2" onchange="
  this.setCustomValidity(this.validity.patternMismatch ? this.title : '');
">
               </div>
               <div class="form-submit mt-10 text-center">
                                <?php
                      if($status==1)
                      {
                      
                      ?>
                      
                      <p style="color:red;">This Email is Already Registerd </p>
               
                      <?php } ?>
                </div>
               <p id="password_status"></p>
               <div class="form-submit mt-10 text-right">
                   <button id="submit" name="user_createaccount" type="submit" class="button"><i  class="fa fa-arrow-circle-right">&nbsp;&nbsp;Sign Up</i></button>
                </div>
                </div>
            </div>   
            </div> 
            </fieldset>
            </form>
            
        </div>
        <div class="col-lg-3"></div>
      </div>
    </div>
 </section>

<?php
require_once("footer.php");
?>