php checking textbox containing a date field
<p>Im using php and im checking if a textbox is empty (this textbox contains a date field) </p>

<p>I have something like this </p>

<pre><code>  $startPeriod = date("Y-m-d",strtotime($startPeriod));

  if(empty($startPeriod){
   // do something 
   }
</code></pre>

<p>this if statement does not work because when a date field is empty it gets defaulted to "1969-12-31" </p>

<p>How can i fix this so that I can actually check if the date field textbox was empty?</p>
