Form updates in PHP-MySQL
May 10, 2007 10:38 PM
Subscribe
Rather than updating the entire table every time a user updates a form (their profile page, for instance), I'd like the quickest way to detect ONLY the edited fields, and update those accordingly.
This will also be useful when updating the system activity log, such as "User John updated e-mail, telephone, password".
The conventional way is to embed a hidden "original" field in the form, and then compare both new and original values. I'm looking at a faster solution with less work - seeing that my project has a loooooot of forms & user activities.
posted by arrowhead to computers & internet (13 comments total)
1 user marked this as a favorite
posted by orthogonality at 11:25 PM on May 10, 2007