title: How to add Query in Submitting Button and find value in another table
body: <p>After I input the code then click the submit , It will find in the database into member if the code (example 0000556397) is correct , if it's correct in attendance table it will shows the information of who submit their code but if it's not it will pop up a no user found </p>
  
  <pre><code>&lt;div class="control-group"&gt;
          &lt;label class="control-label" for="inputPassword"&gt;&amp;nbsp;ID:&lt;/label&gt;
          &lt;div class="reason"&gt;
              &lt;input type="text" class="span2.5" id="inputEmail" name="rfid"  placeholder="Tap your I.D"&gt;
          &lt;/div&gt;
      &lt;/div&gt;  
  
      &lt;div class="control-group"&gt;
          &lt;div class="controls"&gt;
          &lt;button name="submit" type="submit" class="btn btn-success"&gt;&lt;i class="icon-save icon-large"&gt;&lt;/i&gt;&amp;nbsp;Save&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p><img src="https://i.imgur.com/biFa2fF.png" alt=""></p>
  
  <p><img src="https://i.imgur.com/wyKpKNM.png" alt=""></p>