I am trying to submit a form with ajax and also send a multidimensional array with the POST info which contains the email addresses to send to. I can't get this working. It doesn't seem to send the array, it just sends the words 'Array' (from what I can see in Chrome inspector):
//$results is the result of mysql query - multidimensional array
var email_array = "<?php echo json_encode($results); ?>"
$.ajax({
type: "POST",
url: "php/sendmail_client.php",
data: $("#send_mail_form").serialize() + "&email_array=" + email_array,
dataType: "json",
New to jQuery here....