<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Inclination Test</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
        }
        .question {
            margin-bottom: 15px;
        }
        .question label {
            display: block;
            margin-bottom: 5px;
        }
        .question input[type="radio"] {
            margin-right: 10px;
        }
        .results {
            margin-top: 20px;
            font-weight: bold;
        }
    </style>
</head>
<body>

<center><br>
Inclination Test<br>
Instructions: For each statement, <br>indicate how much you agree or disagree using the scale below:<br>
<br>
Strongly Disagree<br>
Disagree<br>
Neutral<br>
Agree<br>
Strongly Agree<br>
</center>

<div class="container">
    <h1>Inclination Test</h1>
    <form method="post" action="">
        <?php
        $questions = [
            "I feel energized when I help others, even if it requires a lot of time and effort.",
            "I am more motivated by long-term goals than by short-term rewards.",
            "I find it easy to forgive others, even when they’ve wronged me.",
            "I enjoy taking on new challenges, even if they are outside my comfort zone.",
            "I often think about how my actions will impact others in the long run.",
            "I prefer working alone to working in a team.",
            "I am drawn to activities that require creativity and self-expression.",
            "I tend to be optimistic about my future and the future of those around me.",
            "I seek out opportunities for personal growth and self-improvement.",
            "I feel a strong connection to my values and principles, and they guide my decisions."
        ];

        foreach ($questions as $index => $question) {
            echo "<div class='question'>";
            echo "<label>$question</label>";
            for ($i = 1; $i <= 5; $i++) {
                echo "<input type='radio' name='q$index' value='$i' required> $i ";
            }
            echo "</div>";
        }
        ?>
        <input type="submit" value="Submit">
    </form>

    <?php
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
        $totalScore = 0;
        foreach ($_POST as $key => $value) {
            $totalScore += (int)$value;
        }

        echo "<div class='results'>";
        echo "<h2>Your Results:</h2>";
        echo "<p>Total Score: $totalScore</p>";

        if ($totalScore <= 20) {
            echo "<p>Your inclinations might lean towards introspection and a preference for stability.</p>";
        } elseif ($totalScore <= 30) {
            echo "<p>You likely have a balanced approach to personal and external goals, with some openness to new experiences.</p>";
        } elseif ($totalScore <= 40) {
            echo "<p>You may be inclined towards personal growth, creativity, and considering the impact of your actions on others.</p>";
        } else {
            echo "<p>You might have a strong orientation towards helping others, personal development, and being guided by values and principles.</p>";
        }
        echo "</div>";
    }
    ?>
</div>



<br>
For each statement, add up the total points based on your responses.<br>
Total Score Interpretation:<br>
10-20: Your inclinations might lean towards introspection and a preference for stability.<br>
21-30: You likely have a balanced approach to personal and external goals, with some openness to new experiences.<br>
31-40: You may be inclined towards personal growth, creativity, and considering the impact of your actions on others.<br>
41-50: You might have a strong orientation towards helping others, personal development, and being guided by values and principles.<br>
I seek out opportunities for personal growth and self-improvement.<br>
I feel a strong connection to my values and principles, and they guide my decisions.<br>
Scoring:<br>
<br>

<br><br>


</body>
</html>

