Comparing form fields with data base fields and highlighting the form fields
- by naveen kotla
Hi,
Can you help me in the following two scenarios (PHP+MYSQL)
Scenario1:
I need to compare the HTML Form field values with the Database field values and highlight the form fields in some color whose values are different from database values before submitting the form (to alert the user).
Scenario2:
On loading the form, i need to compare the values present in 2 different database tables (tables are having different column names but the information is same). the fields which are not same needs to be highlighted in the html form to indicate the users that the master data is varying from secondary data.
Could you help me which is the efficient way of doing this (comparison and highlighting the form values).
thanks in advance
Naveen