Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Naem Azam
Naem Azam

Posted on

     

Login Signup Form with Email Verification

Login Signup Form with Email Verification is a Working PHP based Sine Up from with Working OTP generating System, It's Working On Local Host.

If You Don't Know How to configure XAMPP to send Mail from Localhost in PHP ? You canRead My Another Blog.

Design Your Registration Home page Simple

<?phprequire_once"controllerUserData.php";?><?php$email=$_SESSION['email'];$password=$_SESSION['password'];if($email!=false&&$password!=false){$sql="SELECT * FROM usertable WHERE email = '$email'";$run_Sql=mysqli_query($con,$sql);if($run_Sql){$fetch_info=mysqli_fetch_assoc($run_Sql);$status=$fetch_info['status'];$code=$fetch_info['code'];if($status=="verified"){if($code!=0){header('Location: reset-code.php');}}else{header('Location: user-otp.php');}}}else{header('Location: login-user.php');}?><!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title><?phpecho$fetch_info['name']?> | Home</title><linkrel="stylesheet"href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"><style>@importurl('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');nav{padding-left:100px!important;padding-right:100px!important;background:#6665ee;font-family:'Poppins',sans-serif;}nava.navbar-brand{color:#fff;font-size:30px!important;font-weight:500;}buttona{color:#6665ee;font-weight:500;}buttona:hover{text-decoration:none;}h1{position:absolute;top:50%;left:50%;width:100%;text-align:center;transform:translate(-50%,-50%);font-size:50px;font-weight:600;}</style></head><body><navclass="navbar"><aclass="navbar-brand"href="#">Brand name</a><buttontype="button"class="btn btn-light"><ahref="logout-user.php">Logout</a></button></nav><h1>Welcome<?phpecho$fetch_info['name']?></h1></body></html>
Enter fullscreen modeExit fullscreen mode

In Here I make An Email-OTP System Which is Based On PHP, and js.
Visit MyGitHub to know more.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Hello DEVs! I'm currently learning Python in the Noob level, I like Cybersecurity . I also have a lot of interest in Blockchain. I'm good with HTML and CSS. I Like WordPress Too.
  • Education
    University Of Post and Telecommunication
  • Work
    Linux System Admin | IT Support Specialist | Font-end Dev
  • Joined

More fromNaem Azam

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp