A very common problem, this one. On submission of a form, many people like to call a function to validate some data and then not submit the form if validation fails. What most people tend to forget is to return the function called from the <form> tag. If this is forgotten, the form will still submit. So here is an example that will only submit if you enter the word "correct" into the text field.