html - Logout link doesnt work php -
i'm trying utilize logout link logout form, it's not working (error appears). doing wrong?
logout.php code:
<? php session_start(); session_unset(); session_destroy(); header('location: login link'); exit; ?>
login form:
<?php session_start(); ?> <?php (...) echo' <p style="text-align:left;"> <a href="abc/logout.php">logout</a> </p>'; (...) ?>
you made typo mistake:
<? php
--> <?php
php html
No comments:
Post a Comment