Pass vars in links with security... ?
Dear friends :
I have a file "chooserecord.php" where user can choose a record (whch belongs to his/her user account) and click on "delete register" button.
Then, it takes you to the file "deleterecord.php" where the record status will be changed in the database.. but, here is the question :
When the user chooses the record to delete(change status) it passes that record id like this :
<a href="deleterecord.php?code=3">Click here to delete record 3</a>
And it works.... but... it is not safe !! because, any user could enter directly typing in the URL things like "deleterecord.php?code=4" or "...?code=5" or whatever, and delete the record without having permission... !! so .. what is the best practice for this ?
I'll appreciate your answers,
