hey @Marzio,
I am sure that what you will find the solution.
Let’s try to find what the mistake is…
I don’t fully understand your structure and what are you trying to do and the most important is HOW are you trying to do it:
I suppose you use get variables
Then on the “Orario partenza” button click event you call the “sc_update_viaggio” SC passing the IDviaggio parameter.
What I see here is that your “sc_update_viaggio” SC doesn’t have the no auto load option ticked (so it runs on page load without a reason and cause problems) and you have defined already in the properties as parameter the tableRepeat[0].IDviaggio value.
(by the way, [0] indication always send the first record and not the current like [$index] indication does) .
- Tick the no auto load option and delete the parameter in SC properties panel.
- Leave empty the parameter of your “sc_update_viaggio” SC since it will run only when a button is clicked and send the specific idviaggio value on server.
- I see GET and POST parameters (keys) with uppercase letters… I am not sure if this is a problem but you better use only lowercase letters. Of course in addition I don;t know if the same name with uppercase is not causing problems… IDviaggio as a $_GET and idviaggio as a $_POST keys.
Please check these and come back with the results so we can go on further.