title: HTML form submit automated email using PHP
body: <p>I have created an HTML form, without any difficulty (I am relatively new to HTML and CSS but comfortable with them). The problem is that I want the submit button to send the data inputted in the form by the user to my email address.</p>
  
  <p>My PHP knowledge is <strong>almost non-existent</strong>, and I am totally stuck. If anyone has the patience to help, it would be most appreciated. </p>
  
  <p>Here is the code for the form...</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;Life Academy | Pre-course questionnaire&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/normalize.css"&gt;
      &lt;link rel="stylesheet" href="pcq.css"&gt;
      &lt;link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'&gt;    
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;div id="formbg"&gt;
      &lt;div id="formcontent"&gt;
          &lt;img src="pcqlogo.png" class="logo"&gt;
          &lt;p&gt;&lt;strong&gt;Retirement Planning Course&lt;br&gt;Anonymous Pre-course Questionnaire&lt;/strong&gt;&lt;br&gt;So that the course may more accurately reflect your interests and possible concerns, we would like you to complete and return this questionnaire before the start of the course, by email, to&lt;br&gt; &lt;a href="mailto:info@life-academy.co.uk"&gt;&lt;strong&gt;info@life-academy.co.uk&lt;/strong&gt;.&lt;/a&gt;&lt;/p&gt;
          &lt;form&gt;
              Age&lt;br&gt; &lt;input type="text" name="age"&gt;&lt;br&gt;
              Years with present/last company&lt;br&gt; &lt;input type="text" name="yearswithcompany"&gt;&lt;br&gt;
              Leaving Date&lt;br&gt; &lt;input type="text" name="leavingdate"&gt;&lt;br&gt;
              Job Role&lt;br&gt; &lt;input type="text" name="role"&gt;&lt;br&gt;
  
              Do you have a company or occupational pension plan?&lt;br&gt;
              &lt;input id="yes" type="radio" name="companypension" value="yes"&gt;
              &lt;label for="yes"&gt;Yes&lt;/label&gt;
              &lt;input id="no" type="radio" name="companypension" value="no"&gt;
              &lt;label for="no"&gt;No&lt;/label&gt;&lt;br&gt;
  
              Do you have a personal &amp;#40private&amp;#41 pension plan?&lt;br&gt;
              &lt;input id="yes" type="radio" name="personalpension" value="yes"&gt;
              &lt;label for="yes"&gt;Yes&lt;/label&gt;
              &lt;input id="no" type="radio" name="personalpension" value="no"&gt;
              &lt;label for="no"&gt;No&lt;/label&gt;&lt;br&gt;
  
              What would you like to gain from this course? Please describe in detail.&lt;br&gt; &lt;textarea name="liketogain" class="largetextbox"&gt;&lt;/textarea&gt;&lt;br&gt;
              What are your main activities outside of work?&lt;br&gt; &lt;input type="text" name="activities"&gt;&lt;br&gt;
              How do you think these activities will develop/change in the near future?&lt;br&gt; &lt;textarea name="activitiesdevelop" class="largetextbox"&gt;&lt;/textarea&gt;&lt;br&gt;
              Have you any concerns about the future? If so, list them here:&lt;br&gt; &lt;textarea name="futureconcerns" class="largetextbox"&gt;&lt;/textarea&gt;&lt;br&gt;
              Do you want to make changes to your health/lifestyle? If so, please describe the changes.&lt;br&gt; &lt;textarea name="healthlifestylechanges" class="largetextbox"&gt;&lt;/textarea&gt;&lt;br&gt;
              How would you like the emphasis of your life to change in the future with respect to work/voluntary activity?&lt;br&gt; &lt;textarea name="work" class="largetextbox"&gt;&lt;/textarea&gt;&lt;br&gt;
              Do you have any dietary requirements?&lt;br&gt; &lt;input type="text" name="diet"&gt;&lt;br&gt;
              Do you have any other special requirements?&lt;br&gt; &lt;textarea name="special" class="largetextbox"&gt;&lt;/textarea&gt;&lt;br&gt;
              &lt;input type="submit" value"submit"&gt;
          &lt;/form&gt;
      &lt;/div&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>