TAILIEUCHUNG - Beginning PHP6, Apache, MySQL Web Development- P22

Beginning PHP6, Apache, MySQL Web Development- P22:Welcome to Beginning PHP6, Apache, MySQL Web Development , your new trusty resource for assistance in creating your own dynamic web sites. There are a lot of technologies available that can be used to deliver great web sites, and we ’ re glad you chose the Apache/MySQL/PHP (sometimes referred to simply as AMP) approach. You may or may not have had a taste of these three components in the past, but either way we ’ re confident that you will be impressed with the power that lies within them | Chapter 16 Creating a Bulletin Board System value php echo htmlspecialchars useremail p php if mode Modify echo div fieldset echo legend Access Level legend sql SELECT access_lvl access_name FROM frm_access_levels ORDER BY access_lvl DESC result mysql_query sql db or die mysql_error db while row mysql_fetch_array result echo input type radio id acl_ . row access_lvl . name accesslvl value . row access_lvl . if row access_lvl accesslvl echo checked checked echo . row access_name . br echo fieldset div if mode Modify echo div id passwords if mode Edit if isset _GET error _GET error nopassedit echo strong Could not modify passwords. Please try again . strong br p Old Password br input type password id oldpasswd name oldpasswd maxlength 50 p php if mode Modify p New Password br input type password id passwd name passwd maxlength 50 p p Password Verification br input type password id passwd2 name passwd2 maxlength 50 p php if mode Modify echo div if mode Create p Signature br textarea name signature id signature cols 60 rows 5 php echo signature textarea p 601 Part II Comic Book Fan Site php p input type submit name action value php echo mode Account p php if mode Edit input type hidden name accesslvl value php echo accesslvl php input type hidden name userid value php echo userid form php require_once 3. You are going to create a couple of new user identities to demonstrate the difference between the various roles. Log out and click Register. You should see a screen similar to the one shown in Figure 16-3. Figure 16-3 602 Chapter 16 Creating a Bulletin Board System 4. Enter a name. This name will be used for display purposes. 5. Enter your e-mail address. 6. Enter your password twice for verification. 7. Click the Create Account button. Your account will be created and you will be automatically logged in with your new account. 8. Repeat steps 3 through 7 to create one more account. 9. Log out and then log back in with your original admin account. 10.

TỪ KHÓA LIÊN QUAN
TÀI LIỆU HOT