What's New in Chapter 10?

The ability to edit user information, with 'sticky' forms.

Note that there are two "View Users" links. One of them uses the 'edit_users.php', which fills in the form from the existing database information. An error in filling out the form will reset all information to the database values.

The menu item "View Users II" uses a second version of the edit script 'edit_users_post.php'. The initial setting of the form values will be from the database information. The new values entered will be 'sticky' to the form, while there are at least some correctly filled-in fields. If none of the form fields are set when the edit form is submitted, all values will be reset to the current database values for the specified user ID. (The other option was to fill in the blank fields in the posted form from the database, but then you report an error that something is wrong, and it isn't blank? Or has the original value... In this version, the missing field remains blank.)


Subheader

This is where you'll put the main page content. This content will differ for each page.

This is where you'll put the main page content. This content will differ for each page.

This is where you'll put the main page content. This content will differ for each page.

This is where you'll put the main page content. This content will differ for each page.