in reply to site management with perl

Has been changed where? In the form? Or in the database?

One solution if you want to know if it was changed in the form is that for every visible form element you can store the original value in a hidden field. If the two differ, then that field was updated in the form. (I didn't say it was a good solution...)

Replies are listed 'Best First'.
Re: Re: site management with perl
by waswas-fng (Curate) on Apr 18, 2004 at 13:23 UTC
    Or if you are using sessions, and populate the fields from the current record(s) in the database -- you can tuck the current values into the session as you generate the form. Then when it is submitted you can compare with your session stash and act. This method limits the amount queries to the DB and the amount of data passed over the GET/PUT.


    -Waswas