I have an application where JavaScript is used to dynamically build tables, and the number of rows is not static but is based on the user’s actions. Each table row holds data written by JavaScript based on the user selecting a menu option, and also each row has an input form for data to be directly inputted by the user. This is accomplished using DOM (cloneNode and appendChild) as well as having an external JavaScript file modified by PHP.
It works great, and I now have the all the data and want to send it to PHP for server side processing. I don’t think PHP can read the data directly off the page as the table rows don’t have names, however, I can read all the data using DOM. I know how to use JavaScript to create a new script element, transfer variables along with the URL, and retrieve the variables using PHP $_GET. I am concerned that without knowing how many variables are being passed, this might not work.
Any suggestions on how this might best be accomplished would be much appreciated. Thanks