title: How to prevent multiple inserts when submitting a form in PHP?
body: <p>Sometimes the user may press <code>Enter</code> twice, and the post is inserted twice.</p>
  
  <p>Is there a solution to prevent this other than check if there is already a post with the same <code>title</code> and <code>content</code>?</p>