Originally posted by OwenTheSamoan
I have a message system using php with mysql where the members can send messages to eachother. The only problem is when a message is read or sent the code is seen in the address bar like this-- http://mysite.com/sentmail.php?mail_id=641894
Is there anyway of hiding the code in the address bar of the browser. It seems some of the members have been changing the mail_id number and reading other member's mail.
Thanks,
OwenTheSamoan
2 things to fix this
1) have your page that displays the "mail" check the referringpage, if its not the correct page, Error and log the users information.
2) use the POST method, and change all instances of $GET to $POST