Http\Request::getPost

public getPost ([mixed $name], [mixed $filters], [mixed $defaultValue], [mixed $notAllowEmpty], [mixed $noRecursive])

Gets a variable from the $_POST superglobal applying filters if needed If no parameters are given the $_POST superglobal is returned

1
2
3
4
5
//Returns value from $_POST["user_email"] without sanitizing
$userEmail = $request->getPost("user_email");
 
//Returns value from $_POST["user_email"] with sanitizing
$userEmail = $request->getPost("user_email", "email");
doc_Phalcon
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.