title: PHP - Mail Form Content - how to add CC field?
body: <p>I have used this PHP mail script for a while now and it served me well... I need to ask a few things.</p>
  
  <p>Right now, it just sends an email to me with the information posted.</p>
  
  <p>then it just Echo's back to the user if it was submitted successfully or not.</p>
  
  <p>How can I add a CC field to send the user some direction on what to do next?</p>
  
  <p>thanks</p>
  
  <pre><code>if (isset($_POST['submit'])) {
  
      if (!$_POST['name'] | !$_POST['email'])
      {
          echo"&lt;div class='error'&gt;Error&lt;br /&gt;You did not fill in a required field, please review your form and correct the missing information.&lt;/div&gt;";
      }
      else
      {
          $name = $_POST['name'];
          $email = $_POST['email'];
          $email2 = $_POST['email2'];
          $legal = $_POST['legal'];
          $legal2 = $_POST['legal2'];
          $address = $_POST['address'];
          $address2 = $_POST['address2'];
          $city = $_POST['city'];
          $state = $_POST['state'];
          $zip = $_POST['zip'];
          $phone = $_POST['phone'];
          $comments = $_POST['comments'];
  
  
  
          $yoursite = "See Me Shine Models";
          $youremail = $email;
  
          $subject = "Website Model Form";
          $message = "$name would like you to contact them about See Me Shine Models.
              Contact PH:  $phone
              Email:  $email
              Email2: $email2
              Legal: $legal
              Legal2: $legal2
              Address: $address
              Address2: $address2
              City: $city
              State: $state
              Zip: $zip
              Phone: $phone
              Comments:  $comments";
  
          $email3 = "myaddress@me.com";
  
          mail($email3, $subject, $message, "From: $email");
  
          echo"&lt;div class='thankyou'&gt;Thank you for contacting us,&lt;br /&gt; we will respond as soon as we can.&lt;/div&gt;";
  
      }
  }
  </code></pre>