
<?php
include("dbcon.php");
error_reporting(~E_NOTICE);
if(isset($_POST["btn-sub"])){
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];

$email = $_POST['email'];
$plan = $_POST['plan'];
$password = $_POST['password'];
$investment= $_POST['investment'];
$currentprofit = $_POST['currentprofit'];
$investment= $_POST['investment'];
$withdrawal= $_POST['withdrawal'];
$btcequivalent = $_POST['btcequivalent'];
$walletaddress = $_POST['walletaddress'];
$re_password = $_POST["re_password"];

$sql = "SELECT * FROM members WHERE email='$email'";
  $res = mysqli_query($db, $sql);
  
  if(mysqli_num_rows($res) > 0){
    $emailmsg = "Sorry... email already taken"; 
  }

else if($password!==$re_password){
$errMsg ="Password not the same";
}else{
    
$sql ="INSERT INTO members (firstname,lastname,email,plan,password,investment,currentvalue) 
VALUES ('$firstname','$lastname','$email','$plan','$password','$investment','$currentvalue')";
$result = mysqli_query($db,$sql);
}
if($result){
    
    $msg ="<p class='alert alert-success'>Successsfully Registered"." <a href='login.php'>login</a></p>";
}else {
    
    $msg ="<p class='alert alert-danger'>Error While registering</p>".mysqli_error($db);
}
}


?>


<html>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

<body style="background-color:lightblue;">
         <div class="region region-content-before">
            <div id="breadcrumb-wrapper">
               <ol class="container breadcrumb">
                  <li><a href="index.html">EliteDigitPro</a></li>
                  <li>Register</li>
               </ol>
            </div>
         </div>
         
         <div class="content-page">
            
            <div class="container">
               <div id="ow">
                  <div class="d-flex-sm align-center justify-between">
                     <div class="col-xs-10 col-xs-offset-1 col-sm-12 col-sm-offset-0 col-md-6 text-content">
                 
                       
                     </div>
                     <p>
                        <script>
                           var suffix = "";
                           var myfxtmRedirect = false;
                        </script>
                     <div class="col-xs-12 login-container" style="border:1px solid grey;border-radius:10px;">
                        <div>
                           <div class="col-sm-12 col-xs-12 right-side">
                               <h2 class="m-0 text-primary"><img class="img-fluid me-2" src="img/icon-1.png" alt="" style="width: 45px;text-align:center">EliteDigitPro</h2>
                            
                             <form method ="POST" action="">

                         <p style ="color:green">	<?php echo $msg;?></p>
						<p style ="color:red">	<?php echo $errMsg;?></p><br>
							<p style ="color:red">	<?php echo $emailmsg;?></p>

                        	<div class="form-group">
                            	<input type="text" name="firstname" placeholder="First Name" maxlength="18" class="form-control" required/>
                            </div>
                            <div class="form-group">
                                <input type="text" name="lastname" placeholder="Last Name" maxlength="18" class="form-control" required/>
                            </div>
                        	<div class="form-group">
                            	<input type="email" name="email" placeholder="E-mail" class="form-control" required/>
                            </div>
                            <div class="form-group">
                                <select name="plan" class="form-control" required="required" title="You are required select a plan.">
                                    <option value="">Select plan</option>
                                    <option value="Basic">Basic</option>
                                    <option value="Gold">Gold</option>
                                    <option value="Silver">Silver</option>
                                    <option value="Platinum">Platinum</option>
                                </select>
                            </div>
                            <div class="form-group">
                            	<input type="password" class="form-control" id="password-field" name="password" minlength="8" placeholder="Password" required/>
                                <span data-toggle="#password-field" class="ion-eye toggle-password"></span>
                            </div>
                            <div class="form-group">
                            	<input type="password" class="form-control" id="cpassword-field" name="re_password" minlength="8" placeholder="Confirm Password" required/>
                                <span data-toggle="#cpassword-field" class="ion-eye toggle-password"></span>
                            </div>

							<div class="form-group">
                            	<input type="hidden" name="investment" value="0" placeholder="investment" class="form-control" required/>
                            </div>

							<div class="form-group">
                            	<input type="hidden" name="currentvalue" value="0"placeholder="currentprofit" class="form-control" required/>
                            </div>

						
                            
                            	<div class="form-group">
                            	<input type="hidden" name="withdrawal" value ="0" placeholder="growth" class="form-control" required/>
                            </div>
                            
                            	<div class="form-group">
                            	<input type="hidden" name="btcequivalent" value ="0" placeholder="growth" class="form-control" required/>
                            </div>


	<div class="form-group">
                            	<input type="hidden" name="walletaddress" value ="" placeholder="growth" class="form-control" required/>
                            </div><br><br>
                            
                            <div class="form-group text-center">
                            	<button type="submit" name="btn-sub" class="btn btn-primary">Sign Up</button>
                            </div>
                        </form>
                             <br><br>
                           </div>
                        </div><br><br>
                        
                        
                        
                        <script id="login_modal" type="text/template"><div class="modal-dialog modal-lg"><div class="modal-content"><div class="modal-header"><h4 class="modal-title" id="myModalLabel">Notice</h4></div><div class="modal-body row"><div class="block-bg block-gray small-padding"><p class="col-md-12"> <% if ('global' == region){ %> Please note that you are currently on the ForexTime Limited website which is regulated by CySEC. Based on the MyFXTM login you have entered you will be redirected to Exinity Limited which is regulated by the FSC of Mauritius and you can access your account as normal. <% } if ('eu' == region){ %> Please note that you are currently on the Exinity Limited website which is regulated by the FSC of Mauritius. Based on the MyFXTM login you have entered you will be redirected to ForexTime Limited which is regulated by CySEC and you can access your account as normal. <% } if ('global_uk' == region){ %> Please note that you are currently on the Exinity Limited website which is regulated by the FSC of Mauritius. Based on the MyFXTM login you have entered you will be redirected to ForexTime UK Limited which is regulated by FCA and you can access your account as normal. <% } if ('eu_uk' == region){ %> Please note that you are currently on the ForexTime Limited website which is regulated by CySEC. Based on the MyFXTM login you have entered you will be redirected to ForexTime UK Limited which is regulated by FCA and you can access your account as normal. <% } if ('uk_global' == region){ %> Please note that you are currently on the ForexTime UK Limited website which is regulated by FCA. Based on the MyFXTM login you have entered you will be redirected to Exinity Limited which is regulated by the FSC of Mauritius and you can access your account as normal. <% } if ('uk_eu' == region){ %> Please note that you are currently on the ForexTime UK Limited website which is regulated by FCA. Based on the MyFXTM login you have entered you will be redirected to ForexTime Limited which is regulated by CySEC and you can access your account as normal. <% } %></p></div></div><div class="modal-footer text-left"> <a href="#" id="modalNotice" class="btn btn-primary">Close</a></div></div></div> </script></p>
                     </div>
                  </div>
               </div>
            </div>
            <div class="scroll-top-wrapper"> <span class="scroll-top-inner"> <img loading="lazy" alt="Scroll Top" src="sites/all/themes/fxtm/i/scroll-top.png" width="20px" height="12px" /> </span></div>
            
            
           <?php include("footer.php");?>
   </body>
   <!-- Mirrored from www.forextime.com/login by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 25 Jan 2022 08:19:34 GMT -->
</html>