how to make an if statement on post request php code example Example: if post php if($_SERVER['REQUEST_METHOD'] == 'POST') {}