title: mailchimp php integration
body: <p>I am trying to find a simple bare bones example/demo that shows me how I can build a trivial/proof of concept website that will collect user email (and maybe first name), and add this name to a list created on mailchimp.</p>
  
  <p>To clarify, I am not merely asking how to create a PHP/mySQl website - I already know how to do that, and I already know how to place a form on a page etc.</p>
  
  <p>Assuming I already have the following:
  - A php/MySQL site with a registration form
  - A newly created list on mailchimp</p>
  
  <p>More specifically, I want a user to be able to register on a page on my site, and then I want the following sequence of events to happen:</p>
  
  <ol>
  <li>When a user clicks the 'submit' button on my page, their details gets sent to mailchimp and added to a specific list created on mailchimp</li>
  <li>They are sent a confirmation email by mailchimp</li>
  <li>Once they confirm subscription, they are directed back to a page on my site, with a token from mailchimp</li>
  <li>I store their details (provided by mailchimp) into my MySQL database</li>
  <li>I send the confirmed subscriber an email with an attachment</li>
  <li>When the user unsubscribes from the list, I get notified by mailchimp and I can flag the user as unsubscribed in my database.</li>
  </ol>
  
  <p>I have not been able to find a simple demo (or tutorial) that shows how to implement the required functionality listed above. Can anyone recommend a link (or links) to get me started with implementing these specific "bare bone" functionality?</p>