Sending an array to a function in codeigniter
Posted
by
Mozammil
on Stack Overflow
See other posts from Stack Overflow
or by Mozammil
Published on 2012-06-05T16:33:12Z
Indexed on
2012/06/05
16:40 UTC
Read the original article
Hit count: 203
I have the following codes which sends an array to the function /chat in codeigniter
$(document).ready(function () {
$('#submit').live('click', function (eve) {
eve.preventDefault();
$.ajax({
url: "http://localhost/fq/index.php/splash/chat/",
type: 'POST',
data: a,
success: function (html) {
alert(html);
}
});
});
Let us assume that array a contains names of people only. ( John, James, Smith)
I want to be able to retrieve the all the values from the array in the function chat.
How can it be done?
© Stack Overflow or respective owner