Page 455 - Beginning PHP 5.3
P. 455
Chapter 14: Manipulating MySQL Data with PHP
Testing the Application
Once you ’ ve created your register.php script, open your Web browser and enter the URL of the script
to test the registration process. Try entering a few values in the form and submitting it to see what
happens. Figure 14 - 1 shows the script in action; in this example the user has forgotten to enter their
email address. Notice how the script also prompts them to reenter their password (it ’ s never a good idea
to redisplay an entered password in a form).
Figure 14 - 1
You ’ ve now extended your book club application to allow new members to register for the club. Along
the way you learned how to add new member records to your members table using PHP and PDO.
Creating a Members ’ Area
Now that members can sign up for your book club, you ’ ll provide them with a members ’ area within
your Web site that they can use to check out upcoming events, view the current reading list, and so on.
For the purposes of this chapter, your members ’ area will just contain a few dummy pages, but hopefully
417
9/21/09 9:14:07 AM
c14.indd 417
c14.indd 417 9/21/09 9:14:07 AM