<?php
// var_dump($_POST);
// exit;
include("config.php");
$emailAddress=$_POST["email"];

$query="SELECT * FROM users where email='$emailAddress' and status='Active'";
$data=mysqli_query($conn,$query);
$count=mysqli_num_rows($data);

if($count>0){
    $error="You are already in the system. Please login";
    // echo $error;
    header("location:index.php?message=$error");
    exit;
}
else{
?>

<!DOCTYPE html>
<!-- saved from url=(0055)pages.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  
  <meta name="description" content="">
  <meta name="keywords" content="">
  

  <link href="css2" rel="stylesheet">
  
  <link rel="stylesheet" href="bootstrap.min.css">
  <link rel="stylesheet" href="owl.carousel.min.css">
  <link rel="stylesheet" href="owl.theme.default.min.css">
  <link rel="stylesheet" href="jquery.fancybox.min.css">
  <link rel="stylesheet" href="style.css">
  <link rel="stylesheet" href="flaticon.css">
  <link rel="stylesheet" href="aos.css">
  <link rel="stylesheet" href="style(1).css">

  <title>Pay Now Gh</title>
</head>
<body data-aos-easing="slide" data-aos-duration="800" data-aos-delay="0">


  <div class="site-mobile-menu site-navbar-target">
    <div class="site-mobile-menu-header">
      <div class="site-mobile-menu-close">
        <span class="icofont-close js-menu-toggle"></span>
      </div>
    </div>
    <div class="site-mobile-menu-body">
    
      </div>
  </div>
  
  <nav class="site-nav" style="background-color: #202040;">
    <div class="container">
      <div class="site-navigation">
        <a href="index.php" class="logo">Pay Now Gh</a>
        <ul class="js-clone-nav d-none d-lg-inline-block text-left site-menu">
        
    <li class='active'><a href='index.php'>Home</a></li>
          <li class="has-children">
            <a href="pages.php#">Dropdown</a>
            <ul class="dropdown">
              <li><a href="pages.php#">Menu One</a></li>
              <li class="has-children">
                <a href="pages.php#">Menu Two</a>
                <ul class="dropdown">
                  <li><a href="pages.php#">Sub Menu One</a></li>
                  <li><a href="pages.php#">Sub Menu Two</a></li>
                  <li><a href="pages.php#">Sub Menu Three</a></li>
                </ul>
              </li>
              <li><a href="pages.php#">Menu Three</a></li>
            </ul>
          </li>
          <li class="active"><a href="pages.php">Inner Page</a></li>
          <li><a href="contact.php">Contact Us</a></li>
        </ul>

        <!-- <ul class="js-clone-nav d-none d-lg-inline-block text-left site-menu float-right menu-absolute">
          <li class="cta-button"><a href="" target="_blank">Free Templates</a></li>
        </ul> -->

        <a href="pages.php#" class="burger light ml-auto float-right site-menu-toggle js-menu-toggle d-inline-block d-lg-none" data-toggle="collapse" data-target="#main-navbar">
          <span></span>
        </a>

      </div>
    </div>
  </nav>

  
<br>
<p> 
<br>
<br>
<br>

  <div class="container mb-5">

  
      <div class="col-lg-6 aos-init aos-animate" data-aos="fade-up" data-aos-delay="0">
        <div class="custom-block aos-init aos-animate" data-aos="fade-up" data-aos-delay="100">
          <h2 class="section-title">Sign Up</h2>
          <form class="contact-form bg-white p-5" action="signup_1.php" method="POST">
            <div class="row">
            <?php 
          if(isset($_GET["message"])){echo "<span class='text-danger mb-4 aos-init aos-animate'>$_GET[message]</span>";}else{echo "";}
          ?> 
              <div class="col-md-6">
                <div class="form-group">
                  <label class="text-black" for="fname">First name</label>
                  <input type="text" class="form-control" id="fname" name="firstName">
                </div>
              </div>
              <div class="col-md-6">
                <div class="form-group">
                  <label class="text-black" for="lname">Last name</label>
                  <input type="text" class="form-control" id="lname" name="lastName">
                </div>
              </div>
            </div>
            <div class="form-group">
              <label class="text-black" for="email">Email address</label>
              <input type="email" class="form-control" id="email" aria-describedby="emailHelp" value="<?php echo $emailAddress;?>" name="emailaddress">
              <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
            </div>

            <div class="row">
              <div class="col-md-6">
                <div class="form-group">
                  <label class="text-black" for="fname">Phone number</label>
                  <input type="text" class="form-control" id="fname" name="phone">
                </div>
              </div>
              <div class="col-md-6">
                <div class="form-group">
                  <label class="text-black" for="lname">GPS Address</label>
                  <input type="text" class="form-control" id="lname" name="gps">
                </div>
              </div>
            </div>

            
            <div class="row">
              <div class="col-md-6">
                <div class="form-group">
                  <label class="text-black" for="select">Region</label>
              
              <select name="region" id="select" class="custom-select">
                <option value="Greater Accra">Greater Accra</option>
                <option value="Ashanti">Ashanti</option>
                <option value="Volta">Volta</option>
                <option value="Western">Western</option>
              </select>
                </div>
              </div>
              <div class="col-md-6">
                <div class="form-group">
                  <label class="text-black" for="lname">Constituency</label>
                  <select name="constituency" id="select" class="custom-select">
                <option value="Ododiodo">Odododiodo</option>
                <option value="Ablekuma Central">Ablekuma central</option>
                <option value="Ayawaso West wuogon">Ayawaso west-wuogon</option>
                <option value="Obuom">Obuom</option>
              </select>
                </div>
              </div>
            </div>

            <div class="form-group">
              <label class="text-black" for="password">Password</label>
              <input type="password" class="form-control" id="password" name="password">
            </div>
            <div class="form-group">
              <label class="text-black" for="password">Confirm Password</label>
              <input type="password" class="form-control" id="password" name="cpassword">
            </div>
            <!-- <div class="form-group">
              <label class="text-black" for="message">Message</label>
              <textarea name="" class="form-control" id="message" cols="30" rows="5"></textarea>
            </div> -->
            <!-- <div class="form-group">
              <label class="text-black" for="select">Select</label>
              
              <select name="" id="select" class="custom-select">
                <option value="">Colorlib</option>
                <option value="">Offers high quality free template</option>
              </select>
              
            </div> -->
            <!-- <div class="form-group">
              <label class="control control--checkbox">
                <span class="caption">Custom checkbox</span>
                <input type="checkbox" checked="checked">
                <div class="control__indicator"></div>
              </label>
            </div> -->
            <button type="submit" class="btn btn-primary-hover-outline">Submit</button>
          </form>
        </div>
        

       

       

      </div>
    </div>
  </div>

  
  

  


  <div class="site-footer">
    <div class="container">
      <div class="row justify-content-between">
        <div class="col-lg-4">
          <div class="widget">
            <h3>About</h3>
            <p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live.</p>
          </div>
          <div class="widget">
            <h3>Connect with us</h3>
            <ul class="social list-unstyled">
              <li><a href="pages.php#"><span class="icon-facebook"></span></a></li>
              <li><a href="pages.php#"><span class="icon-twitter"></span></a></li>
              <li><a href="pages.php#"><span class="icon-instagram"></span></a></li>
              <li><a href="pages.php#"><span class="icon-dribbble"></span></a></li>
              <li><a href="pages.php#"><span class="icon-linkedin"></span></a></li>
            </ul>
          </div>
        </div>
        <div class="col-lg-6">
          <div class="row">
            <div class="col-12">
              <div class="widget">
                <h3>Navigations</h3>
              </div>
            </div>
            <div class="col-6 col-sm-6 col-md-4">
              <div class="widget">
                <ul class="links list-unstyled">
                  <li><a href="pages.php#">Home</a></li>
                  <li><a href="pages.php#">Services</a></li>
                  <li><a href="pages.php#">Work</a></li>
                  <li><a href="pages.php#">Process</a></li>
                  <li><a href="pages.php#">About Us</a></li>
                </ul>
              </div>
            </div>
            <div class="col-6 col-sm-6 col-md-4">
              <div class="widget">
                <ul class="links list-unstyled">
                  <li><a href="pages.php#">Press</a></li>
                  <li><a href="pages.php#">Blog</a></li>
                  <li><a href="pages.php#">Contact</a></li>
                  <li><a href="pages.php#">Support</a></li>
                  <li><a href="pages.php#">Privacy</a></li>
                </ul>
              </div>
            </div>
            <div class="col-6 col-sm-6 col-md-4">
              <div class="widget">
                <ul class="links list-unstyled">
                  <li><a href="pages.php#">Privacy</a></li>
                  <li><a href="pages.php#">FAQ</a></li>
                  <li><a href="pages.php#">Careers</a></li>
                  <li><a href="pages.php#">Process</a></li>
                  <li><a href="pages.php#">About Us</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="row justify-content-center text-center copyright">
        <div class="col-md-8">
          <p>
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
            Copyright ©<script type="text/javascript" async="" src="analytics.js.download"></script><script>document.write(new Date().getFullYear());</script>2025 All rights reserved | This template is made with <i class="icon-heart text-danger" aria-hidden="true"></i> by <a href="" target="_blank">Colorlib</a>
            <!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. --></p>
          </div>
        </div>
      </div>
    </div>
    

    <div id="overlayer" style="display: none;"></div>
    <div class="loader" style="display: none;">
      <div class="spinner-border" role="status">
        <span class="sr-only">Loading...</span>
      </div>
    </div>
    
    <script src="jquery-3.4.1.min.js.download"></script>
    <script src="popper.min.js.download"></script>
    <script src="bootstrap.min.js.download"></script>
    <script src="owl.carousel.min.js.download"></script>
    <script src="aos.js.download"></script>
    <script src="jquery.animateNumber.min.js.download"></script>
    <script src="jquery.waypoints.min.js.download"></script>
    <script src="jquery.fancybox.min.js.download"></script>
    <script src="aos.js.download"></script>
    <script src="custom.js.download"></script>

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async="" src="js"></script>
    <script>
       window.dataLayer = window.dataLayer || [];
       function gtag(){dataLayer.push(arguments);}
       gtag('js', new Date());

       gtag('config', 'UA-23581568-13');
    </script>

  </body></html>
  <?php }?>