faez — 2012-03-26T16:07:32-04:00 — #1
I have placed two textboxes on my html webpage - (1) username and (2) password textbox together with (3) a Login button.
on this site, I will provide users with a unique username and password prior to their login; there will be one username and password only. Hence, I need to:
(a) verify that the name and password is correct otherwise, alert users to correct it or contact the admin
(b) if the username and password was correct - redirect users to a URL page on my website e.g page2
could you please advise?
r937 — 2012-03-26T16:13:58-04:00 — #2
what application language are you planning to use? php?
because this isn't really a database question
faez — 2012-03-26T17:10:22-04:00 — #3
I can write this code in SQL or php - I need the code to run via the browser (client-side).
serverstorm — 2012-03-26T19:00:40-04:00 — #4
Authentication is not an easy 1,2,3; however the IMHO the easiest way to do authentication using PHP is HTTP authentication. A quick search on Google provided this article
Hopefully this gets you on your way.