Jump to content

Send Array through Ajax


unemployment

Recommended Posts

I want to send usernames to my ajax php script.  I have these username set up as an array, but this ajax function doesn't work for me.  Do you know why?

 

var users_list		= document.getElementsByName('with_username[]');

ajax.get('/assets/ajax/pm_autosuggest.php?info=' + info + '&list' + users_list,  function (resp)
{		
var search 	= eval('(' + resp + ')');

fill_list(search);
});

Link to comment
https://forums.phpfreaks.com/topic/239276-send-array-through-ajax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.