Logging out puts a new record in the database
Ok, here's the problem.
On my index page I got a login form för the admin page. It works just fine.
On the admin page I can add articles to the mysql database. Works fine.
I can also delete and edit articles without problem. The problem occurs when I log out from the admin page. Tog log out I simply use this:
The logout sends me back to the index page, which is what I want. But if I log in again, a new emtpy record has been added to the database. It looks like it is the log out that adds it. It looks like it is connected to a reload of the page. How do I prevent the browser from reloading the page before quiting?