Create new multidimensional Associative array from 2 arrays
I am looking for a solution to create a single multidimensional associate array in javascript. What I have: I have a mysql database I am accessing with php and have an array containing all fields (key,value pairs) in a single record. Their are upwards of 30 fields in each record so I am looking for a dynamic solution. In the html coding, there is a form that is used to update a specific record in the table. I am using a function call on each input to fill a javascript array by key and value. The keys are identical to the keys in the php array. In the function I am doing a json_encode call on