Comparing form fields with data base fields and highlighting the form fields

Posted by naveen kotla on Stack Overflow See other posts from Stack Overflow or by naveen kotla
Published on 2009-11-09T13:01:42Z Indexed on 2010/03/27 19:03 UTC
Read the original article Hit count: 639

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about comparison