Let's say i have a table and each row have 2 columns: 1) some information 2) nothing but delete the current information when clicking using AJAX
<table>
<tr>
<td> info 1 </td>
<td id="1" onclick="$.ajax('delete.php', {'id':this.id})"></td>
</tr>
<tr>
<td> info 2 </td>
<td id="2" onclick="$.ajax('delete.php', {'id':this.id})"></td>
</tr>
<tr>
<td> info 3 </td>
<td id="3" onclick="$.ajax('delete.php', {'id':this.id})"></td>
</tr>
</table>
someone can just using the browser Inspect Elements and change the id to some other number - and then delete whatever he want! how can i protect it? how any other site (like facebook with LIKES method) do that?