function check_input($data)
            {
                $data = trim($data);
                $data = stripslashes($data);
                $data = htmlspecialchars($data);
                $data = mysql_real_escape_string($data);
                return $data;
            }
            $Campaignid = check_input($_POST['Campaignid']);
            $Productid = check_input($_POST['Productid']);
            $Starting_date = check_input($_POST['Starting_date']);
            $Ending_date = check_input($_POST['Ending_date']);
            $Estimated_sales = check_input($_POST['Estimated_sales']);
            $Estimated_budget = check_input($_POST['Estimated_budget']);
            $Salesobj = new Sales();
            if ($Salesobj->AddEstimation($Campaignid, $Productid, $Starting_date, $Ending_date, $Estimated_sales, $Estimated_budget)) {
                $msg .= 'New Estimation successfully crated.<br>';
            } else {
                $errmsg .= '!Opps Some thing went wrong.<br>';
            }
        }
    }
} else {
    $Campaignid = "";
    $Productid = "";
    $Starting_date = "";
    $Ending_date = "";
    $Estimated_sales = "";
    $Estimated_budget = "";
}
include_once "../../includes/dbclose.inc.php";