Şuanki Dizin: /home/wwwdreamtechnolo/public_html/cakedarbar.in/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/cakedarbar.in/user-registration.php |
<?php include("header.php"); $full_name = ""; $mobile_no = ""; $email = ""; $password = ""; $re_password= ""; $flag = 0; $password_error=""; $mobile_eror =""; $address = ""; $success_flag =""; if(isset($_GET['return_to_cart'])) { $_SESSION['return_to_cart_reg'] = 1; } if(isset($_POST['add'])) { $full_name = $_POST['full_name']; $mobile_no = $_POST['mobile_no']; $email = $_POST['email']; $password = $_POST['password']; $re_password= $_POST['re_password']; $address= $_POST['address']; if($password!=$re_password) { $password_error="Please Match the Password With Re Enter Password"; $flag=1; } if(strlen($mobile_no)!=10) { $mobile_eror="Please Enter 10 Digit Contact No"; $flag=1; } if($flag==0) { $res_password=$db->check_user_email_id_exist_or_not($mobile_no); if($res_password=="") { if($db->add_user($full_name,$address,$mobile_no,$email,$password)) { $success_flag=1; $full_name = ""; $mobile_no = ""; $email = ""; $password = ""; $re_password= ""; $address = ""; } } else { $success_flag=2; } } } ?> <div class="banner-top"> <div class="container"> <h3 >Register</h3> <h4><a href="index.php">Home</a><label>/</label>Register</h4> <div class="clearfix"> </div> </div> </div> <!--login--> <?php if($success_flag==1) { ?> <div class="alert alert-success"> <strong>Success!</strong> You are Registerd With Successfully. </div> <?php } ?> <?php if($success_flag==2) { ?> <div class="alert alert-danger"> <strong>Sorry!</strong> This Mobile No Alerady Register With Us. </div> <?php } ?> <div class="login"> <div class="main-agileits"> <div class="form-w3agile form1"> <h3>Register</h3> <form action="#" method="post"> <label>Name</label> <div class="key"> <input type="text" name="full_name" value="<?php echo $full_name; ?>" class="form-control" required > </div> <label>Name</label> <div class="key"> <i class="fa fa-landmark" aria-hidden="true"></i> <input type="text" name="address" value="<?php echo $address; ?>" placeholder="Enter Address" required> <div class="clearfix"></div> </div> <div class="key"> <i class="fa fa-phone" aria-hidden="true"></i> <input type="text" name="mobile_no" value="<?php echo $mobile_no; ?>" placeholder="Enter Mobile No" required> <div class="clearfix"></div> </div> <div class="key"> <i class="fa fa-envelope" aria-hidden="true"></i> <input type="text" name="email" placeholder="Enter Email ID" value="<?php echo $email; ?>" required> <div class="clearfix"></div> </div> <div class="key"> <i class="fa fa-lock" aria-hidden="true"></i> <input type="password" name="Password" placeholder="Enter Password" required> <div class="clearfix"></div> </div> <div class="key"> <i class="fa fa-lock" aria-hidden="true"></i> <input type="password" placeholder="Enter Re Password" required> <div class="clearfix"></div> </div> <input type="submit" value="Submit"> </form> </div> </div> </div> <?php include("footer.php"); ?> <!-- //footer--> <!-- smooth scrolling --> <script type="text/javascript"> $(document).ready(function() { /* var defaults = { containerID: 'toTop', // fading element id containerHoverID: 'toTopHover', // fading element hover id scrollSpeed: 1200, easingType: 'linear' }; */ $().UItoTop({ easingType: 'easeOutQuart' }); }); </script> <a href="#" id="toTop" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a> <!-- //smooth scrolling --> <!-- for bootstrap working --> <script src="js/bootstrap.js"></script> <!-- //for bootstrap working --> <script type='text/javascript' src="js/jquery.mycart.js"></script> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4