survey - <?php...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: <?php require_once("connections/utdb.php"); $warning = array(); if($_POST['submit']){ $name = addslashes($_POST['name']); $edate = "$_POST[emonth] $_POST[eday] $_POST[eyear]"; $tdate = "$_POST[tmonth] $_POST[tday] $_POST[tyear]"; $los = addslashes($_POST['length']); $manager = addslashes($_POST['manager']); $department = addslashes($_POST['department']); $location = addslashes($_POST['location']); $title = addslashes($_POST['title']); $ $pass1 = 1; //First round of checks if(!$name){ $pass1 = 0; }elseif(!$edate){ $pass1 = 0; }elseif(!$tdate){ $pass1 = 0; }elseif(!$los){ $pass1 = 0; }elseif(!$manager){ $pass1 = 0; }elseif(!$department){ $pass1 = 0; }elseif(!$location){ $pass1 = 0; }elseif(!$title){ $pass1 = 0; } $pass2 = 1; //Second round of checks if($pass1 == 1){ $expectations = addslashes($_POST['expectations']); $expectationsdesc = addslashes($_POST['expectationsdescribe']); $orientation = addslashes($_POST['orientation']); $orientationdesc = addslashes($_POST['orientationdescribe']); $typeofwork = addslashes($_POST['typeofwork']); $qualityofsupervision = addslashes($_POST['qualityofsupervision']); $compensation = addslashes($_POST['compensation']); $workconditions = addslashes($_POST['workconditions']); $lackofrecognition = addslashes($_POST['lackofrecognition']); $familycircumstances = addslashes($_POST['familycircumstances']); $selfemployment = addslashes($_POST['selfemployment']); $healthreasons = addslashes($_POST['healthreasons']); $careeropportunity = addslashes($_POST['careeropportunity']); $careeropportunitydescribe = addslashes($_POST['careeropportunitydescribe']); $backtoschool = addslashes($_POST['backtoschool']); $relocation = addslashes($_POST['relocation']); $other = addslashes($_POST['other']); $otherdescribe = addslashes($_POST['otherdescribe']); $ if(!$expectations){ //array_push($warning, "Expectations of the position"); }elseif($careeropportunity != "" AND $careeropportunitydescribe == ""){ //array_push($warning, "Details about your career oppertunity"); }elseif($other != "" AND $otherdescribe == ""){ //array_push($warning, "Other reasons for leaving."); } $transfer = $_POST['transfer']; $transferdescribe = $_POST['transferdescribe']; $retraindescribe = $_POST['retraindescribe']; $interesting = $_POST['interesting']; $interestingdescribe = $_POST['interestingdescribe']; $ /*if(!$transfer){ array_push($warning, "Whether or not you requested a transfer"); }elseif($transfer == "Yes" AND $transferdescribe == ""){ array_push($warning, "Other transfer options."); }elseif(!$interesting){ array_push($warning, "Whether the job was interesting or not."); }elseif($interesting == "Yes" AND $interestingdescribe == ""){ array_push($warning, "How your job could have been more interesting."); }*/ } $fairtreatment = addslashes($_POST['fairtreatment']); $fairtreatmentdescribe = addslashes($_POST['fairtreatmentdescribe']); $supportonthejob = addslashes($_POST['supportonthejob']); $supportonthejobdescribe = addslashes($_POST['supportonthejobdescribe']);...
View Full Document

Page1 / 18

survey - <?php...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online