// load the standard FacileForms library
$this->execPieceByName('ff_InitLib');

// Get the date entered
$startdate = '';
$enddate = '';
foreach ($this->submitdata as $data)
    switch ($data[1]) {
        case 'StartDate' : $startdate = date("l, d F, Y",strtotime($data[4]));
                              break;
        case 'EndDate'   : $enddate   = date("l, d F, Y",strtotime($data[4]));
                              break;
        default          : break;
    } // switch

// check attempt to post with invalid security code
if (ff_getSubmit('seccode') != $_SESSION['ff_seccode']) {
    $this->status = 1000; // our custom error code
    $this->message = "The security code you entered is missing or incorrect.";
} // if