www.webdeveloper.com
Results 1 to 7 of 7

Thread: retrieving username from login form.

  1. #1
    Join Date
    Dec 2013
    Posts
    57

    retrieving username from login form.

    I am testing this login script from github https://github.com/panique/php-login...631625cce3184c

    Once a user logs in I created a header that sends me to another page and on that page I wanted to echo the $user_name that was entered when I logged in. Can someone help me with a way I can have that displayed?

  2. #2
    Join Date
    Dec 2002
    Location
    Seattle, WA
    Posts
    1,843
    Someone else was trying to use this very same script http://www.webdeveloper.com/forum/sh...sic-login-form
    I don't recommend using it.

  3. #3
    Join Date
    Dec 2013
    Posts
    57
    Where did you learn how to write scripts from scratch? any websites you would like to share?

    my problem is that I don't know where to start and I try to search for php login scripts online and that was the best one I could find.

  4. #4
    Join Date
    Dec 2002
    Location
    Seattle, WA
    Posts
    1,843
    Taught myself PHP 12 years or so ago. The PHP manual has proven to be the most useful tool for learning PHP. Along with endless trial and error.
    You can use that script as a guide to make your own.

    My biggest gripe with that script is that the programmers made a distributable script that is niche due to the requirements that are enforced. When you can a script public, you want to make as usable as possible. As a basic login class, there is no reason for not to be backwards compatible to PHP 5.0 (bare minimum, PHP 3/4 if you want to flaunt your skills). This clearly shows how lazy and ignorant the programmers are.

  5. #5
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    638
    Learning how to write scripts from scratch is managed by (as Nike says) 'just doing it'. You'll never learn by copying. Get a book. Find a site that educates. Try codeacademy.com. I know of people who have used it but have never used it myself. The problem with scripts that you download is that you have no knowledge and therefore have no idea how bad the script could be.

  6. #6
    Join Date
    Dec 2013
    Posts
    57
    How would you be able to find out if your script is not secure enough and there are holes that can be exploited? How can I test for that? I have been reading on owasp.org. Are there other sites you guys know of that discuss security issues.

  7. #7
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,225
    If you only get one PHP book, get this one (and it's pretty small as programming books go): http://phpsecurity.org/
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles