Enter Keyword Hear for Search This Blog

Showing posts with label How to make login page. Show all posts
Showing posts with label How to make login page. Show all posts

Friday, 23 February 2018

How to make login page

<?php session_start(); ?>
<html>
<head>
  <?php include('inc/head.php'); ?>
</head>
<body>
  <div class="container">
    <div class="header text-center">
      <?php include("inc/header.php"); ?>
    
      <nav class="navbar navbar-inverse" role="navigation">
        <?php include("inc/menu.php"); ?>
      </nav>
    </div>
    <div class="row">
      <div class="col-lg-3">
        <?php include("inc/sidebar.php"); ?>
      </div>
    <!-- </div>
    <div class="row"> -->
      <div class="col-lg-9">
        <div class="bs-component">
          <div class="panel panel-primary">
            <div class="panel-heading">
              <h3 class="panel-title">First Signin</h3>
            </div>
            <div class="panel-body">
              <h1>Signin</h1>
              <hr/>
              <div class="col-lg-5">
                <?php 
                  if (isset($_SESSION['login']))
                  {
                    echo '<span class="alert alert-success">'.$_SESSION['login'].'</span>';
                  }
                ?>
                <form action="login_pro.php" method="post">
                  <?php 
                    if (isset($_SESSION['sess_log']['email']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['sess_log']['email'].'</span>';
                    }
                    elseif (isset($_SESSION['sess_log']['che']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['sess_log']['che'].'</span>';
                    }
                    if (isset($_SESSION['sess_log']['notval']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['sess_log']['notval'].'</span>';
                    }
                  ?>
                  <input type="text" name="email" class="form-control" autofocus placeholder="Enter Email-Id" />
                  <br/>
                  <?php 
                    if (isset($_SESSION['sess_log']['pwd']))
                    {
                      echo '<span class="alert alert-danger">'.$_SESSION['sess_log']['pwd'].'</span>';
                    }unset($_SESSION['sess_log']);
                  ?>
                  <input type="password" name="pwd" class="form-control" placeholder="Enter Password" />
                  <br/>
                  <a href="register.php" class="text-success">Create New User</a><br/>
  <a href="forget.php" class="text-info">Forgate Password</a><hr>
                  <input type="submit" value="SignIn" class="btn btn-info" />
                </form>
              </div>   
            </div>
          </div>
        </div>        
      </div>
    </div>


  </div>
</body>
</html>

Featured post

what is ajax?how to create ajax with php code

Ajax Introduction -  એજેક્સ નો ઉપીયોગ કરી ને તમે પેજ લોડ કાર્ય વિના બધી માહિતી મેળવી શકો.એજેક્સ થી તમે કોઈ પણ ડેટા ઝડપ થી મેળવી શકો છો...