In general, the question is: is there an analogue of ispostback from C # in php? You need to know whether the page is loaded for the first time or in response to an action on the form. Depending on this, display or hide the message. How to do this in php?