I have some javascript code that produces an array of values that I want to add to my database. I created the array in the $_GET with the intention of sending the array via dmx.parse('insert_pl.load({array_of_times: my_array})). I was then going to grab the array in a repeat step to add each item to my database. The issue is that the $_GET.array_of_times doesn’t show anything to output and therefore I can’t get the individual array items for the insert.
Not sure if what I am trying to do is exactly the same, but I have a repeat table row that displays my details per user and I want to sum all the totals of selected items.
I used the form with $post with success but when trying to get the same data using $get, it is not picked up by the server connect action I am running. Probably not making sense, but let’s try pictures:
This is my get array and variable(Just testing with 1 now):
This is where I try to do the same as with a form post repeating through the array from the front end repeat:
I am not using form, but only data from the repeat inside the form, so it did not occur to me to change the POST to GET since I need the post. I was triggering the server action on updated value.
Luckily I solved my problem in a completely different way, still getting the results I needed.