AJAX and PHP data transfer

Pabllo

New Member
Well basically what im trying to do is create a method that can take any datatype and essentially convert it into php recognized data or JSON for that matter. So say i wanted to pass an array, a 2d array, or just some basic string. I would call this function pass in the parameters and sent it off to php. Now i would reverse engineer this function to be able to translate what was sent and get it as a php array, or just a string. I'm good at php arrays but iam bad at javascript ones, here lies my dilemma. If anyone could give me some insight into the javascript side, i can take if from there. The most important however is how to send an array with javascript with php that is DYNAMIC, that is, its dimension can change and its length. Say for example this function handles different forms of different number of input fields, it needs to post this form's input fields into an array, convert to JSON and send. Appreciate any help i can get or a guide in the right direction, thank you.
 
Back
Top