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 can Read My Another Blog.


This content originally appeared on DEV Community and was authored by Naem Azam

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 can Read My Another Blog.

Design Your Registration Home page Simple

<?php require_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>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo $fetch_info['name'] ?> | Home</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <style>
    @import url('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;
    } 
    nav a.navbar-brand{
        color: #fff;
        font-size: 30px!important;
        font-weight: 500;
    }
    button a{
        color: #6665ee;
        font-weight: 500;
    }
    button a: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>
    <nav class="navbar">
    <a class="navbar-brand" href="#">Brand name</a>
    <button type="button" class="btn btn-light"><a href="logout-user.php">Logout</a></button>
    </nav>
    <h1>Welcome <?php echo $fetch_info['name'] ?></h1>

</body>
</html>

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


This content originally appeared on DEV Community and was authored by Naem Azam


Print Share Comment Cite Upload Translate Updates
APA

Naem Azam | Sciencx (2021-11-30T08:31:33+00:00) Login Signup Form with Email Verification. Retrieved from https://www.scien.cx/2021/11/30/login-signup-form-with-email-verification/

MLA
" » Login Signup Form with Email Verification." Naem Azam | Sciencx - Tuesday November 30, 2021, https://www.scien.cx/2021/11/30/login-signup-form-with-email-verification/
HARVARD
Naem Azam | Sciencx Tuesday November 30, 2021 » Login Signup Form with Email Verification., viewed ,<https://www.scien.cx/2021/11/30/login-signup-form-with-email-verification/>
VANCOUVER
Naem Azam | Sciencx - » Login Signup Form with Email Verification. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/30/login-signup-form-with-email-verification/
CHICAGO
" » Login Signup Form with Email Verification." Naem Azam | Sciencx - Accessed . https://www.scien.cx/2021/11/30/login-signup-form-with-email-verification/
IEEE
" » Login Signup Form with Email Verification." Naem Azam | Sciencx [Online]. Available: https://www.scien.cx/2021/11/30/login-signup-form-with-email-verification/. [Accessed: ]
rf:citation
» Login Signup Form with Email Verification | Naem Azam | Sciencx | https://www.scien.cx/2021/11/30/login-signup-form-with-email-verification/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.