I have 2 distinct sets of localStorage data that I need INSERTed INTO 2 tables in a mysql db. I'm using hidden fields in a form as 'placeholders' for the localStorage data. The hidden fields are then accessed from the php programs via $_POST and passed to the mysql_query. This process works great and I want to continue using this approach.
The first set of variables will be loaded into a 'header' table. I'm good with the header table. The second set of variables need to be loaded into a 'detail' table. The localStorage variables for the detail table are as follows:
for(var i = 1; i <= val; i++)
if ( localStorage["item" + i] != "X"
**** call load.php passing the item number in the href tag ****
**** the php will receive the item number an run mysql ****