title: PHP Post form values as an XML string
body: <p>Hope someone can help me! I have a PHP form which is posting data to another server - however, I need to post a hidden field of parameters, but as an XML string - E.g.: </p>
  
  <pre><code>&lt;form action="#" method="post"&gt;
  &lt;input type=”hidden” name=”values” value="{XML-formatted string}" /&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>The XML values will be most of the form fields I'm collecting, such as name, address, email, phone etc. etc.</p>
  
  <p>Has anyone done this and importantly have an example of the code to achieve this? - its basically how to format and post the form values as the required XML string in order for the remote server to accept!</p>
  
  <p>Many thanks in advance!</p>