Validation working but validation error message always displayed
I have set up 3 validations on my form. 2 required fields and a unique database entry for the email address. This works and it allows unique email addresses but it wont allow duplicates however the error message is always displayed - even after a successful insert.
I have added:
<?php if(isset($_SESSION['WAVT_candidateadd_672_Errors'])) unset($_SESSION['WAVT_candidateadd_672_Errors']); ?> after the </html>
but this still doesn't clear it.
I have attached the code.