I am trying to create an array in javascript which will allow me to access data like this:
var name = infArray[0]['name'];
however I cant seem to get anything to work in this way. When i passed out a assoc array from php to javascript using json_encode it structured the data in this way. The reason why i have done this is so i can pass back the data in the same format to php to execute an update sql request.
serialize
the array, pass it to the other PHP file and thenunserialize
it, you will have an easier time of it. The intermediate Javascript conversion doesn't seem necessary. – DevlshOne Aug 5 '13 at 18:47