<?php
while($data['user'] as $row){
<input type="check" value="<?php echo $row ?>" class="userid" />
}
?>
<a href="" onlick="userdelete()"></a>
<script>
function userdelete(){
$('userid:checked').each(){
var id = $(this).val();
$.ajax({
//using codeignitor BASEURL and CONTROLLER
url: base_url+"index.php/admin/deleteuser",
type: "POST",
data: data,
cache: false,
success: function (response) {
if (response) {
$("#"+div).html(response);
}else {
$("#"+div).html('ERROR');
}
}
});
}
}
</script>
Suppose if i firebug it and change the value of check box ‘1’ in to ‘2’.. This ajax will delete another user instead to 1.
Please to protect my check boxes, input, select, and all other controller.
Encryption is the best solution for this
Encryption is the conversion of data into a form, called a ciphertext, that cannot be easily understood by unauthorized people