title: Populate HTML Form from Database
body: <p>So I have searched for how to insert items from a MySQL database into a form. From what I understand, for each field, I need to add <code>value="&lt;?php echo htmlentities($Variable); ?&gt;"</code> is there a way to insert the fields all at once? Like in a PHP script? Each field already has a name identifier, that's how the insert.php insert the values into the database, like this:</p>
  
  <pre><code>    //SQL Query to insert data
  $sql="INSERT INTO case_info (Volunteer,CaseShortTitle,CaseNumber,HearingDate...)
  VALUES ('$_POST[Volunteer]','$_POST[CaseShortTitle]','$_POST[CaseNumber]','$_POST[HearingDate]'...)
  </code></pre>
  
  <p>and the form fields look like this:</p>
  
  <pre><code>&lt;div&gt;&lt;input type="text" id="p1f5c" name="CaseShortTitle" class="fieldcontent"&gt;&lt;div class="fielderror"&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Then the Submit button goes to this insert.php file</p>
  
  <p>Is there a way to use GET to populate the fields in this manner?</p>
  
  <p>Thank you!</p>