Hello,
I've got an interesting problem, and I'm not sure how to go about fixing it. The script is located here:
http://www.zegelin.com/php/gbook.php
The code is located here:
http://www.zegelin.com/php/gbook.txt
When a user completes the required fields, and hits submit, the entry is added to the database, the page reloads and the form is cleared. The problem is that if you hit F5, and or refresh the page, a duplicate entry is added to the database. Feel free to try it and see.
Sign the book with anything, hit submit, and when the page is back, refresh it a few times. With each refresh another entry is added.
This is not a big deal, but from experience I can tell that a problem like this could become much more troublesome in a more grandiose application.
I've tried setting the variables to NULL and I've setup some flags etc.
Help from anyone teaching me how to fix this will be greatly appreciate.