I want to include in email to admin the original value as well as new value when user modifies a record. i've seen hack that does this; however, this hack sends the mail before the user actually saves the mod. so the admin would be notified of change even if user doesn't save the change. seems i should be able to save the original value of %rec in a new variable, such as %orig, and pass that to modify success. i am too much a perl novice to figure out how to do this. how would i declare the variable? i added my (%orig) in sub modify_record in db.cgi. i also added:
my (%orig) = %rec; in sub html_modify_form_record { after %rec is retrieved. i added %orig to the email line. this isn't working. i must be leaving out something. can anyone help? thanks!
my (%orig) = %rec; in sub html_modify_form_record { after %rec is retrieved. i added %orig to the email line. this isn't working. i must be leaving out something. can anyone help? thanks!