I want to check information received via a url like http://www.example.com/login?name=john&password=1234
And return information as url by redirecting it to If it is right then- http://www.example.com/right
If it is wrong then - /false
I want to check information received via a url like http://www.example.com/login?name=john&password=1234
And return information as url by redirecting it to If it is right then- http://www.example.com/right
If it is wrong then - /false
You can use the header function to redirect the user. The header function allows sending http headers back to the user. For example header("Location: " . $url)
. Your script should not send output before calling the header function. See this link: https://www.w3schools.com/php/func_http_header.asp