php - Passing javascript array in the url -
how can pass array in url in javascript?
i tried :
http://codeigniter/index.php/assistancemonitoringmodule/assistancemonitoring/getreport?remarks="+stat+"&sortby="+sortby+"&fromdate="+fromdate+"&todate="+todate+"&area="+area;
which remarks 1 being catch in php array , stat javascript array being supplied in remarks. there solution that?
whenever time catch remarks in php use $this->input->get_post('remarks') (since im using codeigniter) got error 'invalid argument supplied foreach()'
thans help. :)
you can encode array json, json.stringify , decode in php json_decode. don't forget use encodeuricomponent values in url, otherwise might not url expected.
Comments
Post a Comment