際際滷

際際滷Share a Scribd company logo
Project Details
Overview
   Use PHP and HTML
     Optionally, spice it up with CSS
   Create a password protected page
     Password is set by you
   Store the users name as well
The Login Page
   Asks for their name
     E.g. Marcus, Bob, Lynda
   Asks them to supply the password
     You will hardcode the password and match it
     against the one they supply
The Protected Page
 Assuming the password they supplied
  was correct
 Show the name they entered
 Show some kind of welcome message
 Make up some content that would be
  considered protected
     E.g. Fake salary report, Fake bank
     statement, etc
Protected Page Continued
 Have an option for the user to logout
 This option should be an HTML link and
  not a form.
     So you should be using a GET request here
     Make sure they are logged in first to logout
Bonus Points
 Have multiple pages that are protected
  by the same password
 Allow the person logged in to change
  their name
 Count the number of times they failed to
  login
     If that count is greater than a certain
      number, dont allow them to login even if
      they get the correct password
Where do I host the code?
   If you are submitting one file you can
    use any simple paste website such as:
     http://pastebin.com
     http://codepad.org
     http://viper-7.com
   Multiple files?
     http://gist.github.com
     Or post a comment with all the files hosted
     on one of the above paste websites
Where do I submit the links?
 You can post them on the Reddit post
 You can email them to me
     recck@ureddit.com
 You can post them on the Google Group
  Discussion board
 You can private message me on Reddit
     Username: womg
Programming in PHP

More Related Content

Programming in php

  • 2. Overview Use PHP and HTML Optionally, spice it up with CSS Create a password protected page Password is set by you Store the users name as well
  • 3. The Login Page Asks for their name E.g. Marcus, Bob, Lynda Asks them to supply the password You will hardcode the password and match it against the one they supply
  • 4. The Protected Page Assuming the password they supplied was correct Show the name they entered Show some kind of welcome message Make up some content that would be considered protected E.g. Fake salary report, Fake bank statement, etc
  • 5. Protected Page Continued Have an option for the user to logout This option should be an HTML link and not a form. So you should be using a GET request here Make sure they are logged in first to logout
  • 6. Bonus Points Have multiple pages that are protected by the same password Allow the person logged in to change their name Count the number of times they failed to login If that count is greater than a certain number, dont allow them to login even if they get the correct password
  • 7. Where do I host the code? If you are submitting one file you can use any simple paste website such as: http://pastebin.com http://codepad.org http://viper-7.com Multiple files? http://gist.github.com Or post a comment with all the files hosted on one of the above paste websites
  • 8. Where do I submit the links? You can post them on the Reddit post You can email them to me recck@ureddit.com You can post them on the Google Group Discussion board You can private message me on Reddit Username: womg