All I know at this point is that these is a difference in the array formatting between PHP and JS. The magic bullet is supposed to be json.
However, this code does not work as advertised.
javascrript snippet: var pt = <?PHP json_encode($prt); ?>
The variable $prt is list of associative arrays, so to get a value in a particular row manually , $prt should give me the value for location in the first row of output.
All of this works just fine if i hard code this in html and php.
However, I want to dynamically produce the rows as needed which requires that a loop employed. The application also requires that the user may add a row which also need to be accounted for when posting.
I think json needs a bit of tweaking to make this happen, but i'm not sure how to proceed.