Ray I will always try and be as specific as I can.
Subsequently I don't understand what you mean by saying... 'When you first view the page it doesn't have the captcha, but then once it fails it doesn't clear?'
I've tried adding '@session_start();' above line 33 as shown in screen shot. Is this where you mean?
Consequently the Show if message for captcha is still not hiding and the email is still not sending.
Thanks in advance.