thx
$fieldname = $_POST['menu']; $value = $_POST['value']; $query = "select * from tablename where $fieldname = '$value' ";
assuming your menu has name 'menu' and the value to search for has name 'value'.
hth