Your date validation is laughable, use some real date validation. http://php.net/checkdate