Updated, as advised. Still not working properly
I've made the changes to the code that you suggested Jason. My form will now insert the record again if everything is correct, but the server validation on the CAPTCHA field still doesn't display the error message when the user enters an incorrect code and the previously entered values in the other fields still do not display.
I've attached my revised file in zip format.