Post custom parameters in Ajax using jQuery
Use below code as per your requirement $.ajax({ url: "text.php", type: "POST", data:{ 'campaign_name': cam_name,'contacts_list':'1,2,3','group_list':'11','sms':'Hello World','speech_text':'Hi Anna, Arun this side', }, success: function(data){ alert(data); }, error: function (jqXHR, textStatus, errorThrown){ alert('Error adding / update data'); } });