Editing Existing Records
A common practice with database-driven Web sites is having a system in place so that you can easily edit existing records. This concept seems daunting to many beginning programmers, but it’s surprisingly straightforward. For the following example, editing registered user records, the process combines three skills you should already have:
Making sticky forms
Using hidden inputs
Registering new users
This next example is generally very similar to delete_user.php and will also be linked from the view_users.php script (when a person clicks Edit). A form will be displayed with the user’s current information, allowing for those values to be changed. Upon submitting the form, an UPDATE query will be run to update the database. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access