At present, the fast contactless identification of liquids enclosed into a container has a practical importance. The identification of liquids can be required, for example, at airports, in order to prevent the transport of illicit liquids in bottles. However, the complexity of applying contactless methods lies in the difficulties to take into account the influence of container characteristics. In this paper, a metamaterial based on two planar photonic crystals (PPC) has been applied for the experimental analysis of liquids in different containers. It was shown experimentally how the transmission coefficient spectrum of PPC varied with changing the characteristics of a container with a liquid. Namely, the influence of thickness and material of the container walls and the inclination angle of its axis relative to the metamaterial plane on the transmission coefficient has been studied. The reliable differing of concentration increments of edible salt and sugar in water was determined as 10 %. It is shown that an increase of the container walls thickness leads to a decrease of the reliability of the liquid identification in it. Thus, the influence of some container characteristics on the reliability of contactless identification of liquids by using PPC has been taken into account.