How I can introduce in this line:
Code:<span class="destqwhit"> <a href="alt_pass.php">Alterar Password</a> | <a href="index.php?"> Logout</a> </span> the next PHP function for logout
Code://LOGOUT FORM if($_POST["logout"] != "") { session_destroy(); echo "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">"; }



Reply With Quote

One can also parse $_SERVER['REQUEST_URI'] if one wants a more flexible solution.
Bookmarks