Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php how to check if page is accessed via post

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Boom baby we a POST method.
}
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// We are a GET method.
}
 
PREVIOUS NEXT
Tagged: #php #check #page #accessed #post
ADD COMMENT
Topic
Name
3+4 =