Page 1 of 1

3 tabbed login form validating ...

Posted: Sat May 20, 2017 9:51 pm
by pepe_lepew1962
Hello:

I have a 3 tabbed user form where one tab is for "registering", another tab for "login" and a third tab for "forgot". The default is "login" and for the most part that all works fine. My problem is that when the user clicks 1 of the other tabs, say "register", and fills in the information and clicks "submit", the page seems to refresh and jump back to the default, which is login. I get why it is doing that because the default radio button is setup that way. How do I stay on that page and ensure it has done proper validating individually? I know I can create 3 individual pages, but I am trying to make it as efficient as possible and this seems logical. I have tried using "sessions" but everything is so bloated. Is there a simple way to do this validating on "current" tab? Ajax? Javascript? JQuery? I have tried for 2 weeks now and am almost defeated.

https://codepen.io/lepew/pen/pPQWQG

Re: 3 tabbed login form validating ...

Posted: Sun May 21, 2017 8:55 am
by Celauran
Ajax calls could totally work here. What have you tried so far and what error(s) are you encountering?