//best way is use the ff: if($_SERVER['REQUEST_METHOD'] === 'POST') { //PROCESS FORM } putting in all in a function: function request_is_post() { return $_SERVER['REQUEST_METHOD'] === 'POST;' }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter