thanks for instruction. That worked. Here's the logout.php file I created.
<?php
//start session
session_start() ;
//remove session variables
session_unset() ;
// destroy the session
session_destroy ();
?>
User Profile
Collapse
-
-
embed php within an HTML hyperlink
This is the code for the hyperlink on a web page.
<li class="current_ page_item" ><a href="</p>http://active.com">Log out</a></li>
How do I add php code to be executed when "Logout" is clicked. I've tried adding the php code, but it continually executes the php code when the page is loaded.
No activity results to display
Show More
Leave a comment: