function cancelEditBanner() { global $database; josSpoofCheck(); $row = new mosBanner($database); $row->bind($_POST); $row->checkin(); mosRedirect('index2.php?option=com_banners'); }
function cancelEditBanner() { global $database; $row = new mosBanner($database); $row->bind($_POST); $row->checkin(); // sanitize $row->id = intval($row->id); mosRedirect('index2.php?option=com_banners'); }
function cancelEditBanner($option) { global $database; $row = new mosBanner($database); $row->bind($_POST); $row->checkin(); mosRedirect("index2.php?option={$option}"); }