title: how can I greet username from php array based on HTML form input?
body: <p>I have that HTML from / I want to make a PHP array in a checkname.php so that when the name is entered in the HTML form input it comes back saying WELCOME (NAME) / and if the name is not within the PHP array it would say user not found, tried everything and not working for me. anyone can help ?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;html&gt;
          &lt;head&gt;
              &lt;title&gt; Greet &lt;/title&gt;
          &lt;/head&gt;
          &lt;body&gt;
              &lt;h2&gt;Greeting App&lt;/h2&gt;
  &lt;form  action="checkname.php" name ="form" method = "POST"&gt;
   
      &lt;input type="text" name = "inputField" &gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
     </code></pre>
  </div>
  </div>
  </p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  if (isset($_POST['inputField'])) 
  {
      $input = $_POST['inputField'];
      echo "Welcome: &lt;b&gt; $input &lt;/b&gt;";
      
  
      if ($input === $_POST['inputField']) {
          echo " ,You are now signed in!&lt;/b&gt;";
      } else{
          echo "&lt;b&gt;User Not Found&lt;/b&gt;";
      }
  }
  
  $word = array("USER1", "USER2", "USER3", "USER4");
  
  
  ?&gt;</code></pre>
  </div>
  </div>
  </p>