require_once( "include/header.php" );
require_once( "$dir[inc]database.php" );
require_once( "$dir[inc]templ.php" );
$logged['member']=checkauth(1);
TopCode();
if ($logged['member']) {
$config = getConfig();
if (isset($_POST['act'])) {
sendForm($_POST['data'], $config);
}
else {
printForm($config);
}
}
else {
?>
We are willing to improve students' experience with our high school, and your feedback is important to us.
If you are a Willow High School graduate, please take a moment to fill out our survey and become eligible to win a special gift from Willow High School in our weekly draw!
Please login to your account to take the survey.
}
BottomCode();
function getConfig(){
return array(
"q1" => array("title" => "How difficult was the high school equivalency test for you?",
"type"=>"radio",
"value" => array("Very easy", "Medium", "Quite difficult")),
"q2" => array("title" => "Did our online training help you to pass the test?",
"type"=>"radio",
"value" => array("Yes", "No", "I didn't take online training")),
"q3" => array("title" => "What was your reason for earning a high school diploma?",
"type"=>"radio",
"value" => array("Get a better job", "Enter a college/university", "Just prove my knowledge",
"Get the respect of my friends", "Other (please specify):"),
"text_added"=>array(5)),
"q4" => array("title" => "What was your reason for choosing online learning?",
"type"=>"radio",
"value" => array("I don't have enough time to go to a traditional school",
"It is easier and faster to get a high school diploma online",
"I have to stay at home because of being sick", "Other (please specify):"),
"text_added"=>array(4)),
"q5" => array("title" => "How has a Willow high school diploma helped you?",
"type"=>"radio",
"value" => array("I entered a college (please specify):", "I got a new job (please specify):", "Other (please specify):"),
"text_added"=>array(1, 2, 3)),
"q6" => array("title" => "Please mention a few things that could be improved by us",
"type"=>"textarea",
"value" => ""),
"q7" => array("title" => "Please give a short feedback on your experience with us:",
"type"=>"textarea",
"value" => ""),
);
}
function printForm($config){
?>