Check if a form is submitted

PHOTO EMBED

Sun Jul 17 2022 03:43:29 GMT+0000 (Coordinated Universal Time)

Saved by @patdevwork

//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;'
}
content_copyCOPY