how can show values in mysql table that match with other values?
===

i have this table

form_name | field_name | field_value  
------------------------------------
form1     |   name   |    submitted
form2     |


whats the best way to show the submitted when name, form1 and form2 match ?

what is the best way to achieve that?

thanks