I need to make a link that when clicked will run this in php:
session_destroy();
I know how to make a link in html, but I don’t know how to make it interact with php. Thanks for any help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For an example, you want to use this script for logging out.
Your HTML has to be something like this for “index.php” (just an example)
Then on the “logout.php”
In case you want to use JavaScript, I can tell you that too?