Understanding how PHP web server works

I have written a simple PHP-program. When I enter something in the input field I can observe the result I want (from a POST input) for a moment, but then it changes to this other result (from a GET input). What is it I do not understand?