title: How to create auto Dynamic Text Box in PHP?
body: <p>I have a question regarding the creation of Auto Dynamic text boxes within PHP. The scenario is like this:</p>
  
  <ul>
  <li>I have 2 tables in a MySQL database.</li>
  <li>The 2 tables (students/teachers) have different number of fields</li>
  <li>Teachers = 8 fields / Students = 5 fields</li>
  <li>A page for inserting new data into the tables is created.</li>
  </ul>
  
  <p>So now there is a need to allow the "insert" page to auto generate the number of fields found within the table to allow inserting of data instead of creating 2 different PHP pages for the website.</p>
  
  <p>I think that by including array into <code>&lt;input type="text" name="TableFieldArray[]" size="40" maxlength="256"&gt;</code> can be used to auto generate the number of fields needed for the insertion of the new data.</p>
  
  <p>Anybody can give me some suggestions?</p>