How to implement a cancel button with required elements
You can make something like this in your function validate : 

function FORM_validate(&amp;$form, &amp;$form_state) {
if ($form_state['values']['op'] == 'cancel')
{
 ///  Do something
/// drupal_goto() for example
}
}