Send array from jQuery(ajax) to PHP
<p>class <code>email</code> is an array of email addresses. How do i get the array in jQuery and then send the data with AJAX to send.php along with class <code>title</code> and <code>message</code>?</p>

<pre><code>    &lt;input type='text' size='30' class='email' value='testing1@gmail.com' /&gt;
    &lt;input type='text' size='30' class='email' value='testing2@gmail.com' /&gt;
    &lt;input type='text' size='30' class='email' value='testing3@gmail.com' /&gt;
    &lt;input type='text' size='30' class='title' value='testing title' /&gt;
    &lt;input type='text' size='30' class='message' value='testing message' /&gt;

&lt;script type="text/javascript"&gt;
$(function() {
var title = $('.title').val();
var message = $('.message').val();

var dataString = 'title=' + title + '&amp;message=' + message;
$.ajax({
    type: "POST",
    url: "send.php",
    data: dataString,
success:function () {


}

});
});
&lt;/script&gt;
</code></pre>

<p>send.php</p>

<pre><code>&lt;?php


  $email = $_POST['email'];
  $title = $_POST['title'];
  $message = $_POST['message'];

foreach($email as $value) {

//send email

}
?&gt;
</code></pre>
