title: How to i hide a password in web page
body: <p>This is my html code for my login page. If I echo the password in the same page, the password is echoed as is. How do I hide the password string so the password is displayed like <code>*******</code> instead?</p>
  
  <pre><code>&lt;div class="form"&gt;
      &lt;div style="width:20%; float:left;"&gt;&amp;nbsp;&lt;/div&gt;
          &lt;div style="width:60%; padding:10px 10px 80px 10px; position:relative; margin-top: 6%; float: left;"&gt;
              &lt;form action="login.php" method="post"&gt; 
                  &lt;h2 style= color:orange; &gt;Log In&lt;/h2&gt;
                  &lt;h3 style=  color:orange;&gt;User name:&lt;input type="text" id="username" name="username" required&gt;&lt;/h3&gt;
                  &lt;h3 style= color:orange; &gt;User password:&lt;input type="password" id="password" name="password" required&gt;&lt;/h3&gt;
                  &lt;button type="submit" name="submit" value="Submit"  style= color:orange; &gt;Login&lt;/button&gt;
              &lt;/form&gt;
          &lt;/div&gt;
  
      if (!$conn) {
          die("Connection failed: " . mysqli_connect_error());
      }
      include('session.php');
  
      echo $Name = $_POST['username'];
      echo $psw  = $_POST['password'];
      $_SESSION["username"]=$Name ;
  
      if(mysql_errno() != 0) {
          echo "Query Failed".mysql_errno();
      }
  
      $row = mysqli_fetch_array($login);
      $password = $row['Pass_word'];
  
      if($password==$psw) {
          header('location:menu.php');
          exit();
          echo $Name;
      } else {
          echo "&lt;h6 style='text-align:center; color:Red'&gt; USERNAME AND PASSWORD DOES NOT MATCH &lt;/h6&gt;";    
      }
  }
  mysqli_close($conn);
  </code></pre>