Learn the parameters of "date()" from http://www.php.net, and correct your mistake of $_POST:
==> $_POST [ ' check ' ] !
("check" must be enclosed in single or double quotes!)
How do you expect any piece of code to work when your BASIC syntax skills are as bad as they are?