Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP Magazine:
Login Boxes Shouldn't Hurt
Aug 27, 2004 @ 12:02:29

Close on the heels of the SimpleTest 1.0RC1 release, is a new article titled "Coding a Login Box Shouldn't Hurt". Web sites can be fiddly to test, especially when it includes functionality like cookie handling and form filling. While manual testing is error prone and tedious, using a Web testing tool can automate the process, making development fast, accurate, and even fun. In this new article , Marcus Baker, helps you solve this tricky problem of authenticating users, by using test driven development.

In this new article, the author leads you through the setup of a (very) simple authentication method for your website. They couple a small form (user/pass/submit) with a PHP class in the background, working to check the inputted user and password for correctness. They even have a more advanced version near the bottom that includes the use of cookies.

tagged:

Link:


Trending Topics: