I have this code:
<input type="button" value="Delete Group" class="followbt" name="delete" onclick="deleteGroupDialog(' . $group_row['ngroup'] . ');">
The field 'ngroup' is the group number that i want to delete, and i am passing it to a javascript function that opens an jquery dialog window in order to ask if the user is certain of what is doing, the problem is that anyone can go on the browser and edit that number and go delete any group (that belongs to him).
I have already made a search about this but i didn't find anything, is there a way to pass the argument more securely?
PS: When i show the dialog window i don't want to reload the page a make a server request.