php – when captcha is wrong form data is lost – Education Career Blog

I have form for my word press website which user can enter some information. In my form I have captcha image which user has enter manually. The problem is when user enters wrong captcha the form data which he filled also losing. Is there is any way to refresh the captcha with out losing the form data? Help me out… Thanks in advance…

,

You should check in your serverside code if the captcha was successful, and if not, repopulate the form with the data the user sent.

,

You might want to go for popular ReCaptcha. Users are able to refresh the captcha code there and then through ajax and after that they can submit the form which makes sure that code you enter is what it is.

Leave a Comment