Problem about http request method

I found both $_POST and $_GET are used in demo. my question is where define the request method. thx a lot

That is situation specific… when you write the view… you know how the data will be passed (POST or GET) and accordingly you use that in the controller/model

thx a lot