date time Php validation against the varible
<p>hi all ive been up all night trying to get this work, im trying to test the $year value against the date to make sure that it is not less than the current date</p>

<p>here is my code at the moment it doesn't seem to work im not sure what im doing wrong</p>

<pre><code>   public function checkDateField($month, $day, $year)
   {
        if (!is_numeric($month) || !is_numeric($day) || !is_numeric($year) || !checkdate($month, $day, $year)&lt; date("m-d-y")) {
            $msg = '*Invalid date';


        }
        return $msg;    
   }
</code></pre>
