code:
setcookie ("Naam", $_POST["naam"], time()+86400, "/", "", 0);
Thats ment to be a boolean not a integer
so
code:
setcookie ("Naam", $_POST["naam"], time()+86400, "/", "", False or True);
would work (Note: chose between true or false)
Also you dont have to set all the parameters, unless you specifically need to controll the path and securty etc.. you could use
code:
setcookie ("Naam", $_POST["naam"], time()+86400);