"; if ($step=="") { $step=1; $sig=0; $con=0; $com=0; $ple=0; } else { if ((($rsig*$rcon*$rcom*$rple)!=24) || (($rsig+$rcon+$rcom+$rple)!=10)) { $step -= 1; print "There was an error in your entries. Please try again.



"; $lastsig=$rsig; $lastcon=$rcon; $lastcom=$rcom; $lastple=$rple; } else { $sig += $rsig; $con += $rcon; $com += $rcom; $ple += $rple; } } $nextstep=$step+1; if ($step<=4) { print "Question $step of 4:

"; print "
\n"; print "\n"; print "\n\n"; print "\n\n"; print "Read the phrase below. In the boxes next to each answer, rate which one applies most closely "; print "to your situation. Mark a 1, 2, 3, or 4 -- one number in each box (where 1 is the answer that "; print "applies most accurately to you and 4 is the least). Use each number only once and leave no "; print "box blank. When done, click "Continue."

\n"; } if ($step==1) { print "How you see others:

\n"; print " "I often feel others are testing me."
\n"; print " "Others are frequently inconsiderate."
\n"; print " "Others demand too much of me."
\n"; print " "Others are often in control."
\n"; } else if ($step==2) { print "How others may react to you:

\n"; print " "Others often feel inadequate."
\n"; print " "Others feel challenged by me when they state their opinions."
\n"; print " "Others feel irritated that I'm not doing my share."
\n"; print " "Others feel pleased but I feel resentful."
\n"; } else if ($step==3) { print "What you try to avoid:

\n"; print " "I must avoid being meaningless or unimportant."
\n"; print " "I must avoid sudden humiliation."
\n"; print " "I must avoid stress."
\n"; print " "I must avoid rejection and criticism."
\n"; } else if ($step==4) { print "Your complaint about life:

\n"; print " "I'm often overburdened."
\n"; print " "If I get too involved with others, I can't do what I want."
\n"; print " "I have a hard time getting started or finishing things."
\n"; print " "I seldom get a chance to see if my way works."
\n"; } else if ($step==5) { $res=array($sig,$con,$com,$ple); $titles=array("Significance","Control","Comfort","Pleasing"); array_multisort($res,SORT_ASC,SORT_NUMERIC,$titles); print "The Results:

Here's how you scored:
" . 
		"Significance: $sig\n" .
		"Control:      $con\n" .
		"Comfort:      $com\n" .
		"Pleasing:     $ple\n
The lower the number, the higher a priority this item is for you. "; print "Remember that most of us value each of these priorities. How you scored simply will help you to understand the importance of each of these priorities to you in relation to one another.
"; print "
"This priority theory in Adlerian psychology was first formulated in 1973 by Nira Kefir, an Israeli psychologist. In assigning a priority to these objectives, we sometimes limit our flexibility. We do this by relying too heavily on only one objective. For instance, if we feel that we must always please, then we will run into trouble since no one can please others all the time. For example, we might have a boss who is critical and doesn't express much appreciation for what we've done." See below for some of the assets and liabilities for each of our priorities, realizing that we can use our priorities in either a useful or useless way.



"; $explanations=array( "Significance" => "Our need to feel significant: "If we exaggerate the important of feeling significant or being better than others, we often try to impress others with how much we know and how capable we are at doing things. The price we often pay is that others feel inadequate around us. We often feel overburdened or overworked. We are often very willing to pay the price of being overworked in order to avoid feeling meaningless or worthless. People usually choose us when a difficult task needs to be done because we usually are responsible, knowledgeable, work hard and get things done."", "Control" => "Our need to be in control: "When we place too much importance on being in control, we often feel panicky when a situation arises where we aren't in control. We seldom allow others to become too close, so we pay the price of having social distance. We're willing to have that distance so no one can find where they might be able to embarrass or humiliate us. Occasionally, we adopt addicting habits such as alcohol or smoking for the purpose of proving that reliquishing control results in severe consequences. Some of our assets are that we are good leaders, are organized, and like excitement."", "Comfort" => "Our need to be comfortable: "If we put too high a priority on being comfortable, we often exaggerate the demands that others put on us. We let them know this non-verbally by sighing. The price we pay for trying to be comfortable is that we often feel lazy and have a hard time getting started. Others are often irritated because we aren't doing our share. We are often willing to pay this price because we want to avoid stress and hassle. People enjoy being around us because we're usually easygoing and carefree."", "Pleasing" => "Our need to please others: "If we exaggerate the importance of pleasing others, we often judge our value by whether or not we are liked and by our ability to know and deliver what others want. We depend on compliments because we then know that someone is pleased with us. We often pay the price of not having many things our way and often feel resentful. We're willing to pay this price to avoid feeling rejected or criticized. Others are frequently pleased with us or feel irritated with us because we seldom directly ask for what we want. People enjoy being around us because we are very sensitive to others and say things that are pleasing to others. We sometimes avoid social situations because it is so much work to always guess what the others want.""); $prios=array("most used","second most used","third most used","fourth most used"); $prio=0; $cur=0; while (($cur<4) && ($prio<2)) { if (($cur<3) && ($res[$cur]==$res[$cur+1])) { $newcur=$cur+1; $explan=""; print "Your " . $prios[$prio] . " priorities are "; print $titles[$cur] . " and " . $titles[$cur+1] . ""; $explan.=$explanations[$titles[$cur]] . "

" . $explanations[$titles[$cur+1]] . "

"; if (($cur<2) && ($res[$cur]==$res[$cur+2])) { print " and " . $titles[$cur+2] . ""; $explan.=$explanations[$titles[$cur+2]] . "

"; $newcur+=1; } if (($cur<1) && ($res[$cur]==$res[$cur+3])) { print " and " . $titles[$cur+3] . ""; $explan.=$explanations[$titles[$cur+3]] . "

"; $newcur+=1; } print ".

"; $cur=$newcur; } else { print "Your " . $prios[$prio] . " priority is " . $titles[$cur] . ".

"; $explan = $explanations[$titles[$cur]] . "

"; } print "$explan"; $prio +=1; $cur += 1; } print "
Items in quotes are taken from "Understanding Yourself and Others" by Bill Riedler. Copyright 1982, 1993 by Bill Riedler."; } if ($step<=4) print ""; print ""; ?>