Check how many times was form submited : <p>I am wondering how can I check is someone tried to log in on site and if he fails login few times to redirect him on forgot password page. I am little word less so I don't know what should I look for. I should try it with jquery and ajax.
I think about something with if password is wrong to echo password is wrong but on third time to send user on forgot page. Now my question is how can I check how many times did someone press submit button with error message for wrong password or username. </p>
