I had this question after viewing
Should I use post or get to go to a specific record in a list of records.
When a user clicks on this link I want the status of the post to change from "unread" to "read". using the GET method I think I would have to perform the update on the page that the href actually links to i.e.:
contact_detail.php?contact
_id=<?php echo $contact_id; ?>">
so, my SQL query would run on the contact_detail.php page. I don't really like this even though it would work. It is unlikely that the administrator of the site is going to fiddle with the values in the URL to set random messages to read but I want to try prevent it anyway. So, would the way be then to perform the update when the user actually clicked the link?
The link can point to an intermediary script that just does the update and then redirects to the viewing page or you can just include a script on the page the link points to that sets the read status - there are many ways of solving this.