Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73796

I want to display the profile image after login

$
0
0

Login Html

<form class="user" action="code.php" method="POST">
                <div class="form-group">
                  <input type="email" name="email" class="form-control form-control-user"  placeholder="Enter Email Address...">
                </div>
                <div class="form-group">
                  <input type="password" name="password" class="form-control form-control-user" placeholder="Password">
                </div>

                <button type="submit" name="login_btn" class="btn btn-primary btn-user btn-block">
                  Login
                </button>
                <hr>



              <div class="text-center">
                <a class="small" href="forgot-password.html">Forgot Password?</a>
              </div>
             </form>

Header in index.php

<span class="mr-2 d-none d-lg-inline text-gray-600 small">

              <?php
             echo $_SESSION['username'];
              ?>

            </span>
            <img class="img-profile rounded-circle" src="<?php echo $_SESSION['image']; ?>"

This is the header in index.php :

IMAGE1

This is the image field in the user table in the database :

IMAGE2

I want to display the profile image after login the image is in the image table in my database.

I'm a newbie in PHP


Viewing all articles
Browse latest Browse all 73796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>