I have a form where a user enters some information into the database.
I have two buttons, preview and save. When the user presses the preview button it just shows the entererd data in a table.
Now here is the strange problem.
I enter the data and press save button. Everything is OK.
But when i press preview and then the save button the form is sent twice resulting in two entries in the db.
Now here is someting even more weird. When i change the form method from post to get, it works fine!
Any ideas?
My brain hurts 🙂