Beginning PHP5, Apache and MySQL Welcome to your (Web hosting asp)


Welcome to your personal information area

Here you can update your personal information, or delete your account.
Your information as you currently have it is shown below:
Click here to return to the home page

First Name:
Last Name:
City:
State:
Email:
Hobbies/Interests:

Update Account | Delete Account

How It Works How it works isn t that much different than anything you ve done so far in this book. You ve made calls to the database, pulled information, displayed information, and used that information. The only difference here is the use of the sessions, once again. The session is used to track users so they are not allowed to access someone else s account. You make a call to the table to pull up the account, according to the user s supplied username and password. This way there is no confusion as to whose account they should be in; that is, if they were able to log in to the system, then they are using their own account. This section is dependent on the login process. If users fail the login process, they won t be able to use this system to update or delete their account as they see fit. Displaying, modifying, and deleting the information from MySQL is no different than what you have done thus far, but now you ve used the session security. Try It Out Editing User Accounts You may have noticed in the previous exercise that there are links to pages that you haven t created yet. Let s do that now. One page will allow a logged-in user to update his or her account. The other will allow the user to delete the account upon confirming that that is the intention. 385 User Logins, Profiles, and Personalization
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Leave a Reply