i wrote a grid widget for editing data from a database and i'm looking for a more convenient way for sending the data to my saving-script.
the form contains textboxes and the following database structure:
recordID field value field value
----------------------------------------------------------
1 first_name andy last_name smith
2 first_name tom last_name jones
3 first_name john last_name connor
currently i'm adding the recordID to the fieldname, sending i this way:
first_name/1=andy&last_name/1=smith&first_name/2=tom.....
the problem is that on the server script i need to parse the recordID's for proper saving. is there a more convenient way where i can wrap each record by its recordID?
such as: record1 = firstname:andy, last_name:smith | record2 = ... ?
i'm building the post string by jQuery. thanks!