I have a form written in PHP/HTML. The form consists of textboxes, dropdowns and checkboxes. What I want to achieve is, I want to track all the changes on the form from textbox, dropdown and checkbox and store it in DB for auditing purposes. I don’t need to know the previous data and what has been update but I want to know if user change the textbox1, dropdown and checkbox.
What is the most efficient way to do this on PHP. I’ve read some triggers in mysql but i want to do it only in PHP.
Thanks a lot.
If I interpret your request correctly, when you draw the form you know the values of the fields. You can store a hash of them:
Then in the process of the submited form you can compare the two values