title: How to send form data to multiple email addresses using PHP?
body: <p>I am a web designer, and dont really know much about PHP. I have a form, and I want the values to be sent to three email addresses. </p>
  
  <p>Here is my HTML:</p>
  
  <pre><code>&lt;form id="player" method="post" action="process.php"&gt;
  
      &lt;label for="name"&gt;Your Name&lt;/label&gt;
      &lt;input type="text" name="name" title="Enter your name" class="required"&gt;
  
      &lt;label for="phone"&gt;Daytime Phone&lt;/label&gt;
      &lt;input type="tel" name="phone" class="required"&gt;
  
      &lt;label for="email"&gt;Email&lt;/label&gt;
      &lt;input type="email" name="email" title="Enter your e-mail address" class="required email"&gt;
  
  
      &lt;input type="submit" name="submit" class="button" id="submit" value="I'd like to join Now" /&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>I have somehow found a PHP code that should send the data to ONE email address only, but I dont even know if it works or not.</p>
  
  <p>Here is the code for that:</p>
  
  <pre><code>&lt;?php
  // Get Data 
  $name = strip_tags($_POST['name']);
  $email = strip_tags($_POST['email']);
  $phone = strip_tags($_POST['phone']);
  $url = strip_tags($_POST['url']);
  $message = strip_tags($_POST['message']);
  
  // Send Message
  mail( "you@youremail.com", "Contact Form Submission",
  "Name: $name\nEmail: $email\nPhone: $phone\nWebsite: $url\nMessage: $message\n",
  "From: Forms &lt;forms@example.net&gt;" );
  ?&gt;
  </code></pre>
  
  <p>Thanks</p>