I am doing a captcha in my website and each time the user registers and the captcha is wrong, I want to flash and say that the captcha is wrong.
This is the variable that I want to send:
var code = a + b + c + d + e;
In the register I want to check if the code is correct (the user entered the right captcha). If it is fine and all of the other parts are fine (they all work properly instead of the captcha) it redirects to a different page. If not it will flash that the captcha is wrong and redirects back to the same page.