title: Saving HTML form data to a doc file
body: <p>I have created a HTML form and a Word document. Actually I want to update the specific fields in the Word document.
  Like the following, user will fill in this form</p>
  
  <pre><code>&lt;form action="test.php" method="post"&gt;
      &lt;table&gt;
         &lt;tr&gt;
          &lt;th&gt;Organization / Company: 
             &lt;td&gt;
                &lt;input type="text" name="company" size="50" required&gt;
             &lt;/td&gt;
          &lt;/th&gt;
         &lt;/tr&gt;
         &lt;tr&gt;
          &lt;th&gt;Telephone: 
             &lt;td&gt;
                &lt;input type="text" name="tele" size="50" required&gt;
             &lt;/td&gt;
          &lt;/th&gt;
         &lt;/tr&gt;
         &lt;tr&gt;
          &lt;th&gt;E-Mail:
             &lt;td&gt;
                &lt;input type="email" name="email" size="50" required&gt;
          &lt;/th&gt;
         &lt;/tr&gt;
     &lt;/table&gt;
     &lt;input id="submitBtn" type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Then save these data to the fields (highlighted in red) in the Word document:
  <a href="https://i.stack.imgur.com/Hlngm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hlngm.png" alt="enter image description here"></a></p>
  
  <p>Is there any advice? Thank you so much!</p>