1
Friends;
I am developing an application and have a manager where I list the database records. The information is arranged in a table and I have a checkbox for selecting the records that can be edited or deleted. That way:
<input name="selecionados[]" id="110" class="iCheck" type="checkbox">
id is the primary key of the record. What happens to me is that if I modify id value through "inspect element" I can change or delete any record in the database. Which could cause a big problem. To delete I’m using Jquery and the $.post. I could encrypt the id value and make it a little difficult for anyone who wants to bypass the system. But what I’d like to know is if there’s a way to take the original value in html and not the value edited by "inspect element"?
The value of the "Inspect element" is the html value, because this browser feature allows you to precisely change the html, which is what you see. You could pass the encrypted value and/or do a check before performing the action.
– Fleuquer Lima