I'm checking to make sure all incoming $_POST values are not empty. is using isEmpty the best method. This is a second check prior to db entry, I'm already using a jquery form validate
if (!isEmpty($_POST['add']) || ($_POST['add']['type'] == 2 && !isEmpty($_POST['cpl']))):
// insert into db
else:
header("Location: /?req=register");
exit();
endif;
!empty($_POST['add'])php.net/manual/en/function.empty.php