比较文本框字段以进行审计跟踪 [英] Comparing textbox fields for audit trail

查看:59
本文介绍了比较文本框字段以进行审计跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要确定文本框是否已更改的帮助,如果它必须更新MySQL表中的旧值和新值,我得到了一个审计表,该表将存储所有这些更改

例如

tbfirst_name = john,然后更改为jane

现在,如果用户更改了该文本框并提交了新值,我需要选择旧值(john)并将其存储在旧值单元格以及新值(jane)中并将其存储在新值单元格中,如果用户未更改其信息,即时消息将如何提取
感到困惑
Wes

hi all, i need help with determining if a text box has changed or not, and if it has it must update the old value and the new value in a MySQL table, i got a audit table that will store all these changes

for example

tbfirst_name = john and then changes to jane

now if the user changes that textbox and submits the new values i need to pick up the old value (john) and store that in the old value cell aswell as the new value (jane) and store that in the new value cell, im just confused on how im going to pick up if the user has changed their info or not

Wes

推荐答案

您只需创建用户类,其中包含表单的所有字段.
-最初创建该类的对象,然后将数据填充到该类中以及相应的框中.
-在保存时检查对象属性的值并根据要求进行保存.
You just create the class of the user which contains all the field for the form.
-Initially create the object of that class and populate the data into it and on the respective box also.
-While saving check the value of the object properties and save according as per requirement.


这篇关于比较文本框字段以进行审计跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆