[solved] Delete a private message securely without get/post?
Posted: Fri Dec 02, 2005 3:26 am
Hi all, this is one i'm stuck on:
I have a PM (Private message) from my forum scripts that I access via a function, and I want to delete it (the PM). That's cool as there's this sweet as function, it runs like so:
2 is the message I want to delete in this example. I have the message number, it is in a var called $i['mt_id'] but how can i create a HTML link on the page to execute the said $SDK>delete_pm function? (ie 'DELETE PM' link) IF I put it out there as a $_GET in an <a href> then anyone can change the 2 to whatever and delete loads of peoples pm's!!!!
If anyone has any ideas I'd really appreciate some advice.
Thanks so much,
Rob
I have a PM (Private message) from my forum scripts that I access via a function, and I want to delete it (the PM). That's cool as there's this sweet as function, it runs like so:
Code: Select all
if ($SDK->delete_pm("2"))
{
echo 'Message Deleted.';
}If anyone has any ideas I'd really appreciate some advice.
Thanks so much,
Rob