This is a common mistake new users to PHP make and when going to a much harder language they struggle most of the time.
This is a simple error and it can be avoided by using proper techniques.
Why not use firstly Super Globals since you are posting data $POST however there are $GET $COOKIE $SESSION do a search on super globals or $_GET you will find a few examples of how people use them or have a better explaination if you want one.
in this case
if (isset($_POST['toto'])) {
//if submitted
}
the isset function determines whether a variable and/or array index is defined before being executed which is what is happening. isset will return either true (1) or false (0) or if you each it out 1 and blank.
Hope that helps