title: Send completed form information to an email
body: <p>Hey guys I'm just starting to learn some php and I was wondering how I could send information from a completed form to an email. I have the code I have listed on the bottom but I know it's not right, any help will be appreciated thanks!</p>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
  
    $email = $_REQUEST['clientEmail'] ;
    $subject = "New Order";
    $name = $_REQUEST['clientName'] ;
    $articleAmount = $_REQUEST['articleNum'];
    $wordAmount = $_REQUEST['wordNum'];
    $topic = $_REQUEST['topic'];
    $info = $_REQUEST['addInfo'];
    mail("kevin.duan996@gmail.com", $subject,
    "Name:" . $name . "&lt;br/&gt;"  . "Amount of Articles:" . $articleAmount . "&lt;br/&gt;" . "Amount of Words:" . $wordAmount . "&lt;br/&gt;" . "Topic:" . $topic . "&lt;br/&gt;" . "Additional Information:" . $info, "From:" . $email);
    echo "Thank you for ordering!";
  
  ?&gt;
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;form action="order.php"&gt;
  
      &lt;fieldset id="client" &gt;
  
          &lt;legend&gt;Client Information&lt;/legend&gt;
          &lt;label for="clientName"&gt;Name:&lt;/label&gt;&lt;input type="text" name="clientName" id="clientName" tabindex="1"/&gt;
          &lt;label for="clientEmail"&gt;Email:&lt;/label&gt;&lt;input type="email" name="clientEmail" id="clientEmail" tabindex="2"/&gt;
  
      &lt;/fieldset&gt;
  
      &lt;fieldset id="order"&gt;
  
          &lt;legend&gt;Order Information&lt;/legend&gt;
          &lt;label for="articleNum"&gt;Number of Articles&lt;/label&gt;&lt;input type="text" name="articleNum" id="articleNum" tabindex="3"/&gt;
          &lt;label for="wordNum"&gt;Words per Article&lt;/label&gt;&lt;input type="text" name="wordNum" id="wordNum" tabindex="4"/&gt;
          &lt;label for="topic"&gt;Topics&lt;/label&gt;&lt;input type="text" name="topic" id="topic" tabindex="5"/&gt;
          &lt;label for="addInfo"&gt;Additional Info&lt;/label&gt;&lt;input type="text" name="addInfo" id="addInfo" tabindex="6"/&gt;
  
      &lt;/fieldset&gt;
  
      &lt;fieldset&gt;
  
          &lt;button type="submit"&gt;Submit!&lt;/button&gt;
  
      &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>