title: Displaying a Username or Password Feedback Message using PHP
body: <p>I need to have messages show up when an invalid username or password is entered.</p>
  <p>I have it set up so that when something happens, it redirects the page back to the <code>index.php</code> page, but with <code>?message=Bad_Username</code> or <code>?message=Bad_Password</code> added.</p>
  <p>I also have an if statement set up so that I can get the message to print below the username or password fields when certain conditions are met.</p>
  <p>I am just not certain what the If statement condition needs to be for it to work.</p>
  <p>Here's the code.</p>
  <pre class="lang-php prettyprint-override"><code>if (($_GET['username'])){
      echo &quot;&lt;p class='help is-danger'&gt;This username is invalid&lt;/p&gt;&quot;;
      if(header(&quot;location: index.php?message=Bad_Username&quot;)){
          echo &quot;&lt;p class='help is-danger'&gt;This username is invalid&lt;/p&gt;&quot;;
      }
  }
  </code></pre>