I have a javascript array say jsArr[]. I want this array to be passed to a php page through the get method. Something like nextPage.php?arr=jsArr[].
There I should be able to access the array like $arr[] = $_GET[arr] and perform operations like foreach($arr as $key => $val)
Is it possible…?
Thanks a lot in advance…
you need to change your url to be:
for example.
outputs:
array(1) { ["arr"]=> array(2) { [0]=> string(2) "js" [1]=> string(3) "js2" } }