开发者

when captcha is wrong form data is lost

I have form for my word press website which user can enter some information. In my form I have captcha image which us开发者_StackOverflow中文版er 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜