I have two buttons, one to log in and another to log out. Now I want only one button, I want that it only shows the log in button. And if you are logged in, then the page refresh (already done) but then I want that the log in button is changed into a logoff button. So that you don't log in two or more times a day and you have to log out first.
<form action="begintijd.php" method="POST">
<input name="begintijd" value="aanmelden" type="submit">
</form>
<form action="eindtijd.php" method="POST">
<input name="eindtijd" value="afmelden" type="submit">
</form>
header("Refresh: 2; index.php");
So you can log in and off so many times you want. But I only want that you can log in once and then you first have to log out before you can log in.
(some things are in dutch, you can overwrite it if you want)