display error box or success
I would like to create an error box or thank you box on the same page as the form is on
i have some of it done it doesnt add in duplicates
basically the form will submit check if its new user email or not if its new user email it inserts the user and displays the thank you green box when the page is reloaded from another page i need the box to go away
if the user email allready exists it will display the red failor box and no insert
also when page is resubmitted would like to clear all form fields so the boxes only appear once on submit