title: Posting Multiple Input Text Value with Same (input)Name
body: <p>I am using php to <code>insert</code> into <a href="http://php.net/manual/en/book.mssql.php" rel="nofollow">Microsoft SQL</a> table and the below is my code:</p>
  
  <p>
  
  <pre><code>$server = "**/**,1433";
  $connectionInfo = array( "Database"=&gt;"***", "UID"=&gt;"**", "PWD"=&gt;"******" );
  $conn = sqlsrv_connect( $server, $connectionInfo );
  if( $conn === false ) {
      die( print_r( sqlsrv_errors(), true));
  }
  if(!empty($_POST['check_list'])) {
      foreach($_POST['check_list'] as $check) {
  
  $sql = "SELECT Item.HQID, Item.ItemLookupCode, Item.Description, Item.ExtendedDescription, Item.SalePrice, Item.Price, Item.CategoryID FROM Item WHERE Item.HQID = '$check'";
  $stmt = sqlsrv_query( $conn, $sql );
  if( $stmt === false) {
      die( print_r( sqlsrv_errors(), true) );
  }
  
  while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) {
  
   $html_table = '&lt;table border="1" cellspacing="0" cellpadding="2"&gt;';
  
   $html_table .= '&lt;form method="post" action="upload.php"&gt;&lt;tr&gt;&lt;td width="350" align ="center"&gt;' .$row['Description']. '&lt;/td&gt;&lt;td width="350" align ="center"&gt;' .$row['ExtendedDescription']. '&lt;/td&gt;&lt;td width="130" align="center"&gt;' 
  
  .$row['ItemLookupCode']. '&lt;td width="100" align="center"&gt;' .$row['SalePrice']. '&lt;/td&gt;&lt;td width="100" align="center"&gt;' .$row['Price']. '&lt;/td&gt;&lt;td width="200" align="center"&gt;&lt;input 
  
  type="text" size="24" name="stitle"&gt;&lt;/td&gt;&lt;td width="100" align="center"&gt;&lt;input type="text" size="8" name="wprice"&gt;&lt;/td&gt;&lt;td width="120" align="center"&gt;&lt;input type="text" size="10" name="scategory"&gt;&lt;/td&gt;&lt;td width="220" align="center"&gt;&lt;input 
  
  type="text" size="28" name="sbody"&gt;&lt;/td&gt;&lt;/tr&gt;';
  $html_table .= '&lt;/table&gt;'; 
  echo $html_table;  
  }
  }
  }
  }
  ?&gt;
  &lt;input type="submit" value="Upload this page" &gt;&lt;/form&gt;
  </code></pre>
  
  <p>I have an <code>&lt;input&gt;</code> with <code>name="stitle"</code> and I want the <strong>PHP</strong> code to take values from each <code>&lt;input&gt;</code> but currently it picks up the value just from the first <code>&lt;input&gt;</code>. How do I fix this?</p>