I have seen a lot of inquiries about ajax, but normally there are about retrieving data from database. I was wondering about how to insert data directly interacting inside a module.
I have a module with listings retrieved from database and I would like that registered users can keep certain information from the module to be accessed later. It would be fine just to have a button near each element from the list to save it to a table maybe with two columns: User and Element ID.
I have researched and it seems that is easy using a wrapper calling a php script that inserts the records, but I am sure that this is a problem for security. Any ideas, please?