Results

[php]

if (isset($_GET[‘submitquiz’])) {
submitQuiz();
}

//Note to add: check that every question has been answered
//Note to add: different pages for each question… some kind of continuous variable or just a different-named button for each one.

function submitQuiz() {

if(!isset($_GET[‘q1’]) && !isset($_GET[‘q2’]) && !isset($_GET[‘q3’]) && !isset($_GET[‘q4’]) && !isset($_GET[‘q5’]) && !isset($_GET[‘q6’]) && !isset($_GET[‘q7’]) && !isset($_GET[‘q8’]) && !isset($_GET[‘q9’]) && !isset($_GET[‘q10’])) {
echo ‘

Whoops! Looks like you did not select any answers. Try again.

‘;
}
else{

$windTotal = 0;
$fireTotal = 0;
$earthTotal = 0;
$waterTotal = 0;

$a = $_GET[‘q1’];
if($a == ‘A’) { ++$waterTotal;}
if($a == ‘B’) { ++$windTotal;}
if($a == ‘C’) { ++$fireTotal;}
if($a == ‘D’) { ++$earthTotal;}
$a = $_GET[‘q2’];
if($a == ‘A’) { ++$fireTotal;}
if($a == ‘B’) { ++$earthTotal;}
if($a == ‘C’) { ++$waterTotal;}
if($a == ‘D’) { ++$windTotal;}
$a = $_GET[‘q3’];
if($a == ‘A’) { ++$windTotal;}
if($a == ‘B’) { ++$fireTotal;}
if($a == ‘C’) { ++$waterTotal;}
if($a == ‘D’) { ++$earthTotal;}
$a = $_GET[‘q4’];
if($a == ‘A’) { ++$windTotal;}
if($a == ‘B’) { ++$fireTotal;}
if($a == ‘C’) { ++$waterTotal;}
if($a == ‘D’) { ++$earthTotal;}
$a = $_GET[‘q5’];
if($a == ‘A’) { ++$fireTotal;}
if($a == ‘B’) { ++$earthTotal;}
if($a == ‘C’) { ++$windTotal;}
if($a == ‘D’) { ++$waterTotal;}
$a = $_GET[‘q6’];
if($a == ‘A’) { ++$earthTotal;}
if($a == ‘B’) { ++$waterTotal;}
if($a == ‘C’) { ++$fireTotal;}
if($a == ‘D’) { ++$windTotal;}
$a = $_GET[‘q7’];
if($a == ‘A’) { ++$waterTotal;}
if($a == ‘B’) { ++$earthTotal;}
if($a == ‘C’) { ++$fireTotal;}
if($a == ‘D’) { ++$windTotal;}
$a = $_GET[‘q8’];
if($a == ‘A’) { ++$earthTotal;}
if($a == ‘B’) { ++$fireTotal;}
if($a == ‘C’) { ++$windTotal;}
if($a == ‘D’) { ++$waterTotal;}
$a = $_GET[‘q9’];
if($a == ‘A’) { ++$fireTotal;}
if($a == ‘B’) { ++$earthTotal;}
if($a == ‘C’) { ++$waterTotal;}
if($a == ‘D’) { ++$windTotal;}
$a = $_GET[‘q10’];
if($a == ‘A’) { ++$windTotal;}
if($a == ‘B’) { ++$waterTotal;}
if($a == ‘C’) { ++$earthTotal;}
if($a == ‘D’) { ++$fireTotal;}

echo ‘

After calculating your quiz results, you would most likely study this element with the Magi:

‘;

echo ‘

‘;

if($waterTotal > $fireTotal && $waterTotal > $windTotal && $waterTotal > $earthTotal)
{ echo ‘WATER

‘; echo ‘‘;
echo “

Water responds to serenity, peace, and a calm nature. Water’s tendency is to collect and unify itself while maintaining in one place.

Tendencies of a Water Controller: Usually, water controllers are calm and thoughtful by nature. They look for ways to diffuse potentially aggressive situations and try to work together with others. Water controllers usually prefer stability and consistency rather than being surprised or caught off guard.

Works well with Earth. Can work with Wind but will occasionally be at odds. Does not work well with Fire.

“;

echo ‘‘;

}
else if($fireTotal > $windTotal && $fireTotal > $earthTotal)
{echo ‘FIRE

‘; echo ‘‘;
echo ‘

Fire responds to aggression, passion, rage, and even hate (which is its most powerful emotion). Fire’s tendency is to duplicate itself and spread out.

Tendencies of a Fire Controller: Usually, fire controllers are passionate but quick to become angry. They look for ways to instill their passion in others and are often very charismatic, but many times they find themselves at odds with one another. Even though they have tendencies to become destructive, they also can be resourceful. They usually do not like complacency.

Very compatible with Earth. Can work with Wind but will be frequently at odds. Does not work well with Water.

‘;
echo ‘‘;

}
else if($windTotal > $earthTotal)
{echo ‘WIND

‘; echo ‘‘;
echo ‘

Wind responds to change, confusion, and even chaos. Wind’s tendency is to maintain its freedom and work by its own set of rules. It is most powerful when it is changing.

Tendencies of a Wind Controller: Usually, wind controllers are free-spirited and unaccountable. They are happy to go with the flow as long as they have the freedom to do what they want to do when they want to do it. They like change and being kept on their toes. They are usually not dependable, but they are lively and enjoy taking risks.

Works well with Fire but also can quickly become at odds. Does not work well with Water.

‘;
echo ‘‘;

}
else {echo ‘EARTH

‘; echo ‘‘;
echo ‘

Earth responds to empathy, nurturing, and care. Earth’s tendency is to grow and cultivate life while protecting whatever comes into contact with it.

Tendencies of an Earth Controller: Usually, earth controllers are patient and encouraging. Many Magi women become an Earth controller once they become mothers because their tendencies change to protect their children. Earth controllers are usually more concerned with relationships than with victories or conquests.

Compatible with all other elements but works best with Fire.

‘;
echo ‘‘;

}

echo ‘

‘;

//echo ‘Fire: ‘ . $fireTotal . ‘ Wind: ‘ . $windTotal . ‘ Earth: ‘ . $earthTotal . ‘ Water: ‘ . $waterTotal;
}
}

[/php]

Click here to take the quiz again!

Leave a Reply

Your email address will not be published. Required fields are marked *