session_start();
header("Cache-control: private"); //IE 6 Fix
// Gets rid of all the error reporting on servers which are not configured appropriately.
error_reporting(E_ALL ^ E_NOTICE);
// Get the PHP file containing the DbConnector class
require_once('DbConnector.php');
// Create an instance of DbConnector
$connector = new DbConnector();
$theOrgId = $_SESSION['McMember_OrgId'];
$theMemId = $_SESSION['McMember_MemId'];
$thehiddenSubmitter = $_POST['hiddensubmitter'];
$GrpName=$_POST['Name'];
$GrpCategory=$_POST['Category'];
$GrpFunction=$_POST['Function'];
$GrpStatus = $_POST['Status'];
$GrpYears = $_POST['Years'];
$GrpResults = $_POST['Results'];
$GrpBudget = $_POST['Budget'];
$GrpProject = $_POST['Project'];
$GrpDescription = $_POST['Description'];
If ($thehiddenSubmitter == "pookachoo"){
// THROW THE INFO INTO A GROUP RECORD
// -----------------------------------------------------------------
$FieldNames = "Name,Category,Description,Function,Project,Budget,Results,ActiveYears,Status,OrgId,CreateDate,CreatedBy";
$FieldValues = "'$GrpName','$GrpCategory','$GrpDescription','$GrpFunction','$GrpProject','$GrpBudget','$GrpResults','$GrpYears','$GrpStatus',$theOrgId,CURDATE(),$theMemId";
$qVals = "INSERT INTO grp ($FieldNames) VALUES ($FieldValues)";
// echo $qVals;
$result = $connector->query("$qVals");
$theNewGrpId = mysql_insert_id();
$theGrpId = $theNewGrpId;
header("location: CreateGroupSelectGroups.php");
}
?>
?>
print "
\n";
?>