title: Using $_GET with a submit button
body: <p>I have a table with 3 columns like so in index.php:</p>
  
  <pre><code>ID   |   StName       |   Inspect
  _________________________________
  1     Wisconsin           INSPECT
  2     Alabama             INSPECT 
  3     Nebraska            INSPECT
  </code></pre>
  
  <p>The right most column is a submit button which takes the user to a page called inspect.php. I want to send the corresponding ID column value to inspect.php when a user clicks the INSPECT button so that I can use that value inside inspect.php, how can I do this? </p>
  
  <p>Currently I have:</p>
  
  <pre><code>//index.php
  
        echo "&lt;table border = 1&gt;
             &lt;tr&gt;
                  &lt;td&gt;ID&lt;/td&gt;
              &lt;td&gt;StName&lt;/td&gt;
                 &lt;/tr&gt;";
  
           // go into a loop to create more rows -- omitted
           echo "&lt;tr&gt;";
              echo "&lt;td&gt;" . $resultArr[0] . "&lt;/td&gt;";
              echo "&lt;td&gt;" . $resultArr[1] . "&lt;/td&gt;";
              echo "&lt;td&gt;  &lt;form action='inspect.php' method='get'&gt;
                      &lt;input type='Submit' value='Inspect'&gt;
                      &lt;/form&gt;
                   &lt;/td&gt;";
              echo "&lt;/tr&gt;";
        echo "&lt;/table&gt;";
  </code></pre>
  
  <p>$resultArr[0] contains the ID value I want to send to inspect.php</p>