title: Submit values from multiple textboxes as arrays
body: <p>Basically what I want my program to do is to ask the user how many numbers they want to enter. Once the value is submitted, the program will take the value and create this amount of textboxes. Each textbox will take a number and once submitted, it should take all the numbers (excluding the initial text box) and store it into an array or something so the mean can be calculated. </p>
  
  <p>I've been able to get as far as creating x amount of textboxes but cannot find a way to submit these values. </p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;form action="means.php" method = "get"&gt;
  Enter sample size: &lt;input type = "number" name = "size" &lt;br&gt;
  &lt;input type = "submit"&gt;
  
  &lt;?php 
  if ( isset($_GET["size"] ) )
  {
  $size = $_GET["size"];
  $count = 1;
  while ($count &lt;= $size)
      {
      echo '&lt;br&gt;&lt;input type=\"text\"  name=\"textbox".$count."\" /&gt;';
      $count++;
  
      }
  }
  ?&gt;
  &lt;/form&gt;
  
  
  
  &lt;/html&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I assume the problem is that the textboxes created are being echoed so the name "textbox.$count." cannot be used to obtain the numbers? </p>
  
  <p>Any help would be greatly appreciated. Thanks in advance! </p>