New Contact Being Created on Page Refresh

So I’m creating the contact management app from Brian’s lovely video tutorial…

I have a modal with an add contact form, and another form with a hidden field for the delete function.

All works well, except each time the page is refreshed, a new empty contact is added to the database.

Why could this be?

Code is attached!

(note that at the moment this is running as a content page due to some finger trouble I appear to have had!)

Antony.

Brian’s tutorial:

Community Page
Last updated: