name[id] value=“amount” good to know that thank you
json was creating manually json_encode ($ _ POST [‘fconnector’]); it’s easier like that
Our main topic is your example does not work for me
I just explained it simply, I thought it would be easy with array_xxxx_xxx(), sorry
I cannot determine the f connector quantity selected in the F connector A table section on its own page.
Because I will calculate and determine the quantity for the selected ID on the last page according to the products to be selected on the next page.
I determine the amount of f connector selected in the F connector B table section on its own page. There is no problem here.
The question is:
The last page has this data
B of the table: b_fconnector
A of the table: a_fconnector
I calculated amount for a_fconnector and got 100 results
Add the amount of 100 for ID 7
If the IDs are the same, add the amounts and create an array or json
Merge strings if IDs are different
I will write to database as json
i think like this inexperienced
b_fconnector = json_decode(b_fconnector)
if(key(b_fconnector) == a_fconnector)
elseif(key(b_fconnector) != a_fconnector)