//+trace dis

// load the standard submit utilities
$this->execPieceByName('ff_InitLib');

// get the userid to delete
$deleteid = 0;
foreach ($this->submitdata as $data)
    if ($data[_FF_DATA_NAME]=='deleteid') {
        $deleteid = $data[_FF_DATA_VALUE];
        break;
    } // if

// delete the record if userid found
if ($deleteid > 0)
    ff_query("delete from `#__rnr_contest` where id=$deleteid");