Hi,
I'm working on a website for a school project and I'm stuck on setting up the login. The set-up I have for the login is when the user entered the wrong password five (5) times, they will then be redirected to the password reset page.

My question is can I use a loop for it and what loop do you suggest I use?

I'm not used to doing web coding so I'm at lost at this one. Also thanks for helping me out.

Hi,

You can use conditions you dont need a loop e.g.

if login < 5 continue
else redirect to password reset page...

hope you get the concept here feel free to contact me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.