title: How to handle inputs with the same name in php to add/update them in the database?
body: <p>I have an HTML input form which is have an unknown number of inputs in some stages, like when the user wants to enter more than one document he click on an add button so a new field appears to him (using JavaScript for sure). </p>
  
  <p>I make the names of the inputs just the same but in an array like <code>&lt;input name="something[]"/&gt;</code> .. the problem is I don't know if what I am doing gonna work or not .. </p>
  
  <p>HTML PART</p>
  
  <pre><code>    &lt;input name="uat[]" type="date"/&gt;
  &lt;/td&gt;
  &lt;td&gt;
      &lt;input name="uatedate[]" type="date"/&gt;
  &lt;/td&gt;
  &lt;td&gt;
      &lt;input name="pgldate[]" type="date"/&gt;
  </code></pre>
  
  <p>PHP PART </p>
  
  <pre><code>$j=0; 
  
  while(j&lt;100){
      $sql[j]= "insert into project scope values ('$uat[j]','$uatedate[j]' , '$pgldate[j]' ;)";
  
      $j++;
  }
  </code></pre>
  
  <p>^^ Just before the "try"</p>