title: Best way to load and save HTML form data to an xml file?
body: <p>I know you can't do this with just HTML, or JavaScript. I am using PHP, JavaScript, and HTML. What I want to do is have a form that a user can fill out then when submit is pressed all the form data is saved to an xml file. Then when the web page is brought up again all the data from the xml file is loaded into the form. I am currently using PHP to save to xml which is working fine. My min problem is how I am loading the xml file, I am using PHP embedded into my HTML which I feel is becoming very convoluted. I wanted a way to just load the xml data in one section of my code, rather than scattered about. I was able to do this with saving the form data, but loading seems to be a bit more challenging. </p>
  
  <pre><code>&lt;td&gt;&lt;input type="text" name="person_name" value="&lt;?php echo $config-&gt;main-&gt;calling-&gt;general-&gt;person_name;?&gt;"&gt;&lt;/td&gt;  
  </code></pre>
  
  <p>There are a bunch of these kind of statements...</p>