Your IP : 3.23.103.203


Current Path : /home/lentoinv/believersfamilyfoundation.com/profile/
Upload File :
Current File : //home/lentoinv/believersfamilyfoundation.com/profile/signup.php

<?php
session_start(); ob_start();
if(isset($_GET['ref'])){$_SESSION['ref']=$_GET['ref']; header('location: ../'); }
$ref=$_SESSION['ref']??'';
include('class.php');
if(sqL1('user','sn',$ref)==0){$ref='';}

?>
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title> Create Account</title>

    <!-- Custom fonts for this template-->
    <link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
    <link
        href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
        rel="stylesheet">

    <!-- Custom styles for this template-->
    <link href="css/sb-admin-2.min.css" rel="stylesheet">
<!--     <link href="css/styles.css" rel="stylesheet" /> -->

</head>

<body class="bg-gradient-primaryx" style="background-color: green">
    <?php if(isset($report)){echo Alert(); } ?>

           <div id="layoutAuthentication">
            <div id="layoutAuthentication_content">
                <main>
                    <div class="container">
                        <div class="row justify-content-center">
                            <div class="col-lg-7">
                                <!-- Basic registration form-->
                                <div class="card shadow-lg border-0 rounded-lg mt-5">
                                    <div class="card-header justify-content-center"><h3 class="font-weight-light my-4">Create Account </h3></div>
                                    <div class="card-body">
                                        <!-- Registration form-->
                                        <form method="post">
                                            <!-- Form Row-->
                                            <div class="form-row">
                                                <div class="col-md-6">
                                                    <!-- Form Group (first name)-->
                                                    <div class="form-group">
                                                        <label class="small mb-1" for="inputFirstName">Surname</label>
                                                        <input class="form-control" name="firstname" id="inputFirstName" type="text" placeholder="Enter Surname" value="<?php echo $_POST['firstname']??'' ?>" required />
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <!-- Form Group (last name)-->
                                                    <div class="form-group">
                                                        <label class="small mb-1" for="inputLastName">Other Names</label>
                                                        <input class="form-control" name="lastname" id="inputLastName" type="text" placeholder="Enter Other Names" value="<?php echo $_POST['lastname']??'' ?>" required />
                                                    </div>
                                                </div>
                                            <div class="col-md-6">
                                                    <!-- Form Group (first name)-->
                                                    <div class="form-group">
                                                        <label class="small mb-1" for="inputFirstName">Date of Birth</label>
                                                        <input name="dob" class="form-control" id="inputFirstName" type="date" placeholder="Enter Date of Birth"  value="<?php echo $_POST['dob']??'' ?>" required />
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <!-- Form Group (last name)-->
                                                    <div class="form-group">
                                                        <label class="small mb-1" for="inputLastName">Gender</label>
                                                        <select name="sex" class="form-control" id="inputLastName" required>
                                                            <?php echo $_POST['sex'] ? '<option>'.$_POST['sex'].'</option>' : '<option value="">Select Option</option>'; ?>
                                                            <option>Male</option> 
                                                            <option>Female</option>
                                                        </select>
                                                    </div>
                                                </div>
                                            <div class="col-md-6">
                                                    <!-- Form Group (first name)-->
                                                    <div class="form-group">
                                                        <label>Phone Number</label>
                                                        <input type="text" class="form-control" name="phone" placeholder="Enter Phone Number" required value="<?php echo $_POST['phone']??'' ?>"> </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <!-- Form Group (last name)-->
                                                   <div class="form-group">
                                                        <label>Residential Address</label>
                                                        <input type="text" class="form-control" name="address" placeholder="Enter Address" required value="<?php echo $_POST['address']??'' ?>"> </div>
                                                </div>
                                            <div class="col-md-6">
                                                    <!-- Form Group (first name)-->
                                                   <div class="form-group">
                                                        <label>City</label>
                                                        <input type="text" class="form-control" name="city" required placeholder="Enter City" value="<?php echo $_POST['city']??'' ?>"> </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <!-- Form Group (last name)-->
                                                    <div class="form-group">
                                                        <label>State of Residence</label>
                                                        <select class="form-control"  name="state" required>
                                                             <?php echo $_POST['state'] ? '<option>'.$_POST['state'].'</option>' : '<option value="">Select Option</option>'; ?>
                                                            
                                                            <option>Abia</option><option>
Adamawa</option><option>
Akwa-Ibom</option><option>
Anambra</option><option>
Bauchi</option><option>
Bayelsa</option><option>
Benue</option><option>
Borno</option><option>
Cross River</option><option>
Delta</option><option>
Ebonyi</option><option>
Edo</option><option>
Ekiti</option><option>
Enugu</option><option>
FCT</option><option>
Gombe</option><option>
Imo</option><option>
Jigawa</option><option>
Kaduna</option><option>
Kano</option><option>
Katsina</option><option>
Kebbi</option><option>
Kogi</option><option>
Kwara</option><option>
Lagos</option><option>
Nasarawa</option><option>
Niger</option><option>
Ogun</option><option>
Ondo</option><option>
Osun</option><option>
Oyo</option><option>
Plateau</option><option>
Rivers</option><option>
Sokoto</option><option>
Taraba</option><option>
Yobe</option><option>
Zamfara</option><option>
Outside Nigeria</option>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- Form Group (email address)            -->
                                         <?php if($ref==''){ ?>   <div class="form-group">
                                                <label class="small mb-1" for="inputEmailAddress">Sponsor ID</label>
                                                <input class="form-control" id="inputEmailAddress" type="Number" aria-describedby="emailHelp" placeholder="Enter Sponsor ID" name="ref" />
                                            </div>
                                        <?php } else{ $uid = sqLx('user','sn',$ref,'id');  echo 'Sponsored By: '.userName($uid) ; } ?>
                                            
                                            <hr>
                                            LOGIN INFORMATION

                                            <!-- Form Group (email address)            -->
                                            <div class="form-group">
                                                <label class="small mb-1" for="inputEmailAddress">Email</label>
                                                <input class="form-control" id="inputEmailAddress" type="email" name="email" aria-describedby="emailHelp" placeholder="Enter email address"  value="<?php echo $_POST['email']??'' ?>" />
                                            </div>
                                            <!-- Form Row    -->
                                            <div class="form-row">
                                                <div class="col-md-6">
                                                    <!-- Form Group (password)-->
                                                    <div class="form-group">
                                                        <label class="small mb-1" for="inputPassword">Password</label>
                                                        <input class="form-control" id="inputPassword" type="password" name="pwd" placeholder="Enter password" required />
                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <!-- Form Group (confirm password)-->
                                                    <div class="form-group">
                                                        <label class="small mb-1" for="inputConfirmPassword">Confirm Password</label>
                                                        <input class="form-control" id="inputConfirmPassword" name="pwd2" type="password" placeholder="Confirm password" required />
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- Form Group (create account submit)-->
                                            <div class="form-group mt-4 mb-0">
                                                <button type="submit" name="RegisterNewUser" class="btn btn-primary btn-block" >Create Account</button></div>
                                        </form>
                                    </div>
                                    <div class="card-footer text-center">
                                        <div class=""><a href="login.php">Have an account? Go to login</a></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </main>
            </div>
            <div id="layoutAuthentication_footer">
                <footer class="footer mt-5 footer-dark">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-md-12" style="color: white">Copyright &#xA9; 2020. Believers Family Foundation</div>
                          
                        </div>
                    </div>
                </footer>
            </div>
        </div>
    <!-- Bootstrap core JavaScript-->
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

    <!-- Core plugin JavaScript-->
    <script src="vendor/jquery-easing/jquery.easing.min.js"></script>

    <!-- Custom scripts for all pages-->
    <script src="js/sb-admin-2.min.js"></script>

</body>

</html>

?>