Let's say I have a few input boxes with id's 1,2,3 respectively as a simple example.
Now I am using these ids to update certain field in my db. But what is to stop the user from editing those ids to something else! By doing inspect element in chrome.
What can I do about this. I need these ids as references to fields in my db. How do I send this to the db ensuring the user's have not tampered with it. Do I have to store these in a $_POST field? Or do I encrypt the ids then cross reference it in the db to get the real ids?
What do I do, what is best practice?