I want to try and learn the different methods of editing records in my database as I feel the current method is slightly insecure.
Currently, I list all the records I have and wrap one of the fields with an edit link using the record ID.
The issue is I send the ID through the URL, so my link will look like this:
And my URL would like like this:
I suppose the issue with this is that a user could simply change the ID in the URL and possibly pick up another user.
So my question is, Is there a more secure way of sending data for editing where the end user doesn't have sight of the ID of the record to be edited?
Currently, I list all the records I have and wrap one of the fields with an edit link using the record ID.
The issue is I send the ID through the URL, so my link will look like this:
Code:
<a href='editusers.php?id=$row[0]'>Edit</a>
Code:
[URL unfurl="true"]http://www.blah.co.uk/admin/editusers.php?id=8[/URL]
So my question is, Is there a more secure way of sending data for editing where the end user doesn't have sight of the ID of the record to be edited?