I have to pass amount and name arrays from javascript to a php script via http GET.
var amount=new Array();
amount = document.form_perk.elements["amount[]"];
var name = document.form_perk.elements["name[]"];
http.open('get', 'perks.php?+obj2url("amount", amount)&obj2url("name", name)');
http.onreadystatechange = insertReply;
http.send(null);
How is this done?
EDIT: It appears the problem is this:
Should be:
ORIGINAL POST:
Use this function (modified from here):
This should give you for example something like this:
perks.php?amount0=10&amount1=27&name0=john&name1=sally.