title: How do I develop a registration form leveraging MVC principles?
body: <p>I am new to the world of coding and am having a hard time understanding what MVC is and how I can apply it to PHP. At the risk of this question being closed I have scoured the web for numerous articles however none of them explain them explain MVC in a way I can understand. </p>
  
  <p>For example, I came across the article at Coding Horror - <a href="http://www.codinghorror.com/blog/2008/05/understanding-model-view-controller.html" rel="nofollow">http://www.codinghorror.com/blog/2008/05/understanding-model-view-controller.html</a> however I am unsure how I can apply it to PHP. I apologise for posting an ambiguous question earlier however I hope this question is more direct.</p>
  
  <p>Let's take a look at example that will hopefully help me understand. The objective is a user must complete a registration form that will have the details recorded in a database. </p>
  
  <p>I currently have the following files
   - a PHP file (i.e. with the extension PHP) with XHTML markup - There is no code in here as yet except XHTML mark-up
   - a CSS file</p>
  
  <p>I have also have a MySQL database</p>
  
  <ol>
  <li>How would develop the registration form using MVC?</li>
  <li>What files should I have?</li>
  <li>What folder structures would I have?</li>
  </ol>
  
  <p>I am not looking for actual code but an example of how I would develop a MVC application.</p>