if(isset($_GET["name"])){ $name = $_GET["name"]; echo "Hello ".$name; }
if(isset($_POST["username"]) && isset($_POST["password"])){ $username = $_POST["username"]; $password = $_POST["password"]; // validate username and password }This code checks if the "username" and "password" parameters were submitted through a POST request and if so, retrieves the values and performs a validation check. Thus, PHP Core request is an integral part of PHP programming and does not require any external package or library.