title: Input boxes in while loop
body: <p>I am wondering how I can differentiate the name on the input box in a while loop so when I post I get 2 separate values. Here is my code:</p>
  
  <pre><code>   &lt;form method="post" action="rewarded.php"&gt;
          &lt;?php
          $nameqry="SELECT name FROM kids";
          $names=mysqli_query($conn, $nameqry) or die ("Error could not execute name query: " . mysqli_error());
  
          echo "&lt;table&gt;";
          while($namerow=mysqli_fetch_array($names)) {
          $name=$namerow["name"];
          echo "&lt;tr&gt;&lt;td&gt;$name will use &lt;input type='text' name='points'&gt; points.&lt;/td&gt;&lt;/tr&gt;";
          }
          echo "&lt;/table&gt;";
          echo "&lt;input type='submit' value='Submit'&gt;";
          ?&gt;
      &lt;/form&gt;
  </code></pre>