SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2012
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question how to code a button (login) to verify username + password and redirect it to an url

    hello,

    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?

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,217
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by faez View Post
    could you please advise?
    what application language are you planning to use? php?

    because this isn't really a database question
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2012
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can write this code in SQL or php - I need the code to run via the browser (client-side).
    Thank you.

  4. #4
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    6 Thread(s)
    Hi faez,

    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.
    Steve
    ictus==""


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •