Depression Assessment Results
// declare variables
$results = 0;
// QUESTION 1 CODE
if (isset($_POST['q1'])) { // If Question 1 has an answer
if ($_POST['q1'] == '0') {// If Question 1 answer is 0 .. do not add anything
$results += 0;}
elseif ($_POST['q1'] == '1'){
$results += 1;}
elseif ($_POST['q1'] == '2') {
$results += 2;}
elseif ($_POST['q1'] == '3'){
$results += 3;
}
} else {
echo '
ERROR: You must select an answer for question 1 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 2 CODE
if (isset($_POST['q2'])) { // If Question 2 has an answer
if ($_POST['q2'] == ’0′) {// If Question 1 answer is 0 .. do not add anything
$results += 0;
}
elseif ($_POST['q2'] == ’1′){
$results += 1;}
elseif ($_POST['q2'] == ’2′) {
$results += 2;
}
elseif ($_POST['q2'] == ’3′) {
$results += 3;}
} else {
echo ‘
ERROR: You must select an answer for question 2 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 3
if (isset($_POST['q3'])) {
if ($_POST['q3'] == ’0′) {
$results += 0;
} elseif ($_POST['q3'] == ’1′) {
$results += 1;
} elseif ($_POST['q3'] == ’2′){
$results += 2;
} elseif ($_POST['q3'] == ’3′) {
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 3 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 4
if (isset($_POST['q4'])) {
if ($_POST['q4'] == ’0′) {
$results += 0;
}
elseif ($_POST['q4'] == ’1′) {
$results += 1;
} elseif ($_POST['q4'] == ’2′){
$results += 2;
} elseif ($_POST['q4'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 4 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 5
if (isset($_POST['q5'])) {
if ($_POST['q5'] == ’0′) {
$results += 0;
}
elseif ($_POST['q5'] == ’1′) {
$results += 1;
} elseif ($_POST['q5'] == ’2′){
$results += 2;
} elseif ($_POST['q5'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 5 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 6
if (isset($_POST['q6'])) {
if ($_POST['q6'] == ’0′) {
$results += 0;
}
elseif ($_POST['q6'] == ’1′) {
$results += 1;
} elseif ($_POST['q6'] == ’2′){
$results += 2;
} elseif ($_POST['q6'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 6 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 7
if (isset($_POST['q7'])) {
if ($_POST['q7'] == ’0′) {
$results += 0;
}
elseif ($_POST['q7'] == ’1′) {
$results += 1;
} elseif ($_POST['q7'] == ’2′){
$results += 2;
} elseif ($_POST['q7'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 7 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 8
if (isset($_POST['q8'])) {
if ($_POST['q8'] == ’0′) {
$results += 0;
}
elseif ($_POST['q8'] == ’1′) {
$results += 1;
} elseif ($_POST['q8'] == ’2′){
$results += 2;
} elseif ($_POST['q8'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 8 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 9
if (isset($_POST['q9'])) {
if ($_POST['q9'] == ’0′) {
$results += 0;
}
elseif ($_POST['q9'] == ’1′) {
$results += 1;
} elseif ($_POST['q9'] == ’2′){
$results += 2;
} elseif ($_POST['q9'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 9 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 10
if (isset($_POST['q10'])) {
if ($_POST['q10'] == ’0′) {
$results += 0;
}
elseif ($_POST['q10'] == ’1′) {
$results += 1;
} elseif ($_POST['q10'] == ’2′){
$results += 2;
} elseif ($_POST['q10'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 10 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QQUESTION 11
if (isset($_POST['q11'])) {
if ($_POST['q11'] == ’0′) {
$results += 0;
}
elseif ($_POST['q11'] == ’1′) {
$results += 1;
} elseif ($_POST['q11'] == ’2′){
$results += 2;
} elseif ($_POST['q11'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 11 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QQUESTION 12
if (isset($_POST['q12'])) {
if ($_POST['q12'] == ’0′) {
$results += 0;
}
elseif ($_POST['q12'] == ’1′) {
$results += 1;
} elseif ($_POST['q12'] == ’2′){
$results += 2;
} elseif ($_POST['q12'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 12 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;}
// QUESTION 13
if (isset($_POST['q13'])) {
if ($_POST['q13'] == ’0′) {
$results += 0;
} elseif ($_POST['q13'] == ’1′) {
$results += 1;
} elseif ($_POST['q13'] == ’2′){
$results += 2;
} elseif ($_POST['q13'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 13 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 14
if (isset($_POST['q14'])) {
if ($_POST['q14'] == ’0′) {
$results += 0;
}
elseif ($_POST['q14'] == ’1′) {
$results += 1;
} elseif ($_POST['q14'] == ’2′){
$results += 2;
} elseif ($_POST['q14'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 14 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 15
if (isset($_POST['q13'])) {
if ($_POST['q15'] == ’0′) {
$results += 0;
}
elseif ($_POST['q15'] == ’1′) {
$results += 1;
} elseif ($_POST['q15'] == ’2′){
$results += 2;
} elseif ($_POST['q15'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 15 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 16
if (isset($_POST['q16'])) {
if ($_POST['q16'] == ’0′) {
$results += 0;
}
elseif ($_POST['q16'] == ’1′) {
$results += 1;
} elseif ($_POST['q16'] == ’2′){
$results += 2;
} elseif ($_POST['q16'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 16 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 17
if (isset($_POST['q17'])) {
if ($_POST['q17'] == ’0′) {
$results += 0;
}
elseif ($_POST['q17'] == ’1′) {
$results += 1;
} elseif ($_POST['q17'] == ’2′){
$results += 2;
} elseif ($_POST['q17'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 17 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 18
if (isset($_POST['q18'])) {
if ($_POST['q18'] == ’0′) {
$results += 0;
} elseif ($_POST['q18'] == ’1′) {
$results += 1;
} elseif ($_POST['q18'] == ’2′){
$results += 2;
} elseif ($_POST['q18'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 18 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// QUESTION 19
if (isset($_POST['q19'])) {
if ($_POST['q19'] == ’0′) {
$results += 0;
} elseif ($_POST['q19'] == ’1′) {
$results += 1;
} elseif ($_POST['q19'] == ’2′){
$results += 2;
} elseif ($_POST['q19'] == ’3′){
$results += 3;
}
} else {
echo ‘
ERROR: You must select an answer for question 19 . Please click the back button in your browser and answer the question in reference. Or to start the test over…Please click HERE .
‘;
}
// THIS IS THE PRINT OUT AREA
echo ‘
echo “
Your Score: = $results
“;
if ($results <= 10) {
echo 'Your score is below the clinical range. People who score in this range may occasionally feel depressed, but are not considered to be clinically depressed.
To read about meditation techniques..please click here.
To read about hypnosis..please click here.
‘;
} elseif ($results > 10 && $results <= 25) {
echo 'Individuals with MILD depression score in the range.
You scored in the clinical range, but your symptoms are mild. It is likely that you will be able to manage your symptoms without medication. Psychotherapy rather than chemotherapy is the recommended course. It is important to choose a therapist well matched with your traits and personal style. Please visit out Depression Page which describes different psycho-therapeutic approaches to the treatment of depression. ‘;
} elseif ($results > 25 && $results < 40) {
echo 'Individuals with MODERATE depression score in the range.
Drs. Tina and Bill Dubin are both licensed psychologists, and each have been treating people with depressive disorders for more than three decades. They focus on treating different kinds of depression with different clinical strategies. To find out what you can do about depression and read about different approaches click on the links below:
Learn more about Tina’s supportive approach to treating depression.
Please click here to learn more about Bill’s collaborative method of helping you understand how your depressive trap works so that you can escape it and prevent relapse. ‘;
} elseif ($results > 40) {
echo ‘ You scored in the SEVERE range of clinical depression.
It is recommended that you contact a clinical professional and report your score (indicate that it is within the severe range of clinical depression). Depending upon your understanding of yourself and the past path for you, the a clinical professional may be you personal physician, a psychiatrist [who will prescribe medication] or our office by phone (512) 343-8307 or contact us by clicking here. If you have not already done so, please visit out Depression Page which describes different psycho-therapeutic approaches to the treatment of depression. ‘;
}
echo ‘
‘;
?>
- No categories



