title: what exactly happens when we load a php file that contains a html form and a php conditionnal statement?
body: <p>i have a php file that contains a form and a php block that contains itself an if condition related to that form. when i try to access it through the browser, it loads the form as expected.But i wanna know what happens to that if statement inside the server, does it ,like, wait until we click some button in the form(like a submit button) and then it reproccess the whole php file again,or it just checks the if condition only and return whatever we put inside that if block.</p>