Snippets tagged “request-method”
2 snippets use this tag.
- Detecting request type in PHP (GET, POST, PUT or DELETE)PHP
In PHP, you can use the $_SERVER['REQUEST_METHOD'] superglobal to detect the request type.
- PHP form - on submit stay on same pagePHP
To stay on the same page after a form submission in PHP, you can use the following steps.