hello
I have a table with the columns one, two and three. I am looking for logic for a page before it loads go and check if the person is in database, the home page should show up if not an error page should come up.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Nov 20, 2014, 11:17 AM
Did you get your answer?
Wim SturkenboomPosted Nov 19, 2014, 11:57 AM
In the login page, you can validate (as indicated by Shweta) and set a session variable to indicate that the user is valid; if the user is valid, you can redirect to the page where he/she came from.
Shweta LodhaPosted Nov 19, 2014, 11:46 AM
You can execute your validation logic on your login form's button click. In case of invalid login details, you can redirect the user to error page.