php POST in if statement code example Example: if post php if($_SERVER['REQUEST_METHOD'] == 'POST') {}