title: Result of IF Statements is not showing correctly
body: <p>any idea what can be wrong with my code?
  if value of variable is correct and output is correct, there is showing that it is incorrect.</p>
  
  <p>Then after trying multiple times the result is correct, everything is perfect.</p>
  
  <p>After that I am trying my code again, when I click refresh, old results is staying.</p>
  
  <p>Input Is not matching with value variable, but there still showing old result that it is correct.</p>
  
  <p>Thanks for all help</p>
  
  <p>Nancy</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
      &lt;link rel="stylesheet" href="style.css"&gt;
      &lt;title&gt;Printing Quotes&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class='container'&gt;
          &lt;header&gt;
              &lt;h1 id="title"&gt;Who said this quote?&lt;/h1&gt;
          &lt;/header&gt;
          &lt;section&gt;
              &lt;?php
                  $quote="These aren't the droids you're looking for.";
                  $author = 'Kenobi';
  
                  echo "&lt;div id='question'&gt;
                          &lt;h2&gt;$quote&lt;/h2&gt;
                        &lt;/div&gt;";
  
              ?&gt;
                  &lt;form action="" method="POST"&gt;
                      &lt;input id='input' type="text" name="author" placeholder="Enter your answer"&gt;
                  &lt;/form&gt;
          &lt;/section&gt;
          &lt;section&gt;
              &lt;?php
                  if(isset($_POST['author']) == $author){
  
                      echo "&lt;div id='correct'&gt; Correct!!!&lt;/div&gt;";
  
                      echo "&lt;br&gt;";
  
                      echo 
                      "&lt;div id='quote'&gt;{$author} says: \" $quote \" &lt;/div&gt;";
  
                      echo 'match';        
                      echo '&lt;br&gt;';
                      echo 'Variable value:'. $author;
                      echo '&lt;br&gt;';
                      echo 'User Input:'. $_POST['author'];
  
                  }
  
                  else {
                      echo "not match";
                      echo '&lt;br&gt;';
                      echo 'Variable value:'. $author;
                      echo '&lt;br&gt;';
                      echo 'User Input: '. $_POST['author'];
  
                  }
              ?&gt;
          &lt;/section&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8Zxx0.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><a href="https://i.stack.imgur.com/wXVTD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wXVTD.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/lkZuG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lkZuG.jpg" alt="enter image description here"></a></p>