Exporting email form data to a database
<p>I have a form on my website that is submitted to my email address; the structure of the email is as follows:</p>

<blockquote>
  <p><strong>Name:</strong> John Smith</p>
  
  <p><strong>Address 1:</strong> 1 Kings Road</p>
  
  <p><strong>Address 2:</strong> Kings Place</p>
  
  <p><strong>City:</strong> London</p>
  
  <p><strong>Post Code:</strong> SW1</p>
  
  <p><strong>Enquiry Type:</strong> General Enquiry</p>
  
  <p><strong>Website:</strong> <a href="http://www.stackoverflow.com">http://www.stackoverflow.com</a></p>
  
  <p><strong>Email:</strong> john@gmail.com</p>
  
  <p><strong>Details:</strong> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
  do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
  ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
  aliquip ex ea commodo consequat. </p>
  
  <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
  pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
  culpa qui officia deserunt mollit anim id est laborum</p>
</blockquote>

<p>This is how it arrives to me in my inbox. I have several of these emails - and I need to export the data from these emails in to my database. I have all the fields set up in the database (name, address1, etc), so now all I need to do is extract each piece of data from the email.</p>

<p>I have set up a form with a textarea field - the idea being that I copy and paste the contents of the email into that textarea and then submit the form. The processing of the data will be done in the PHP script.</p>

<p>I am struggling to figure out how best to do this - I could do with some ideas. Thanks.</p>
