Check if a form is submitted
Sun Jul 17 2022 03:43:29 GMT+0000 (UTC)
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
Comments