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