| Do You Need Christian Counseling? |
|
Please answer the questions below to see if you are a candidate for Christian counseling. $response = ""; $questions[] = "My relationship with God is the most important in my life."; $questions[] = "I pray every day."; $questions[] = "I consider myself active in my faith or church."; $questions[] = "I look to my faith as a source of comfort."; $questions[] = "I enjoy being around others who share my faith."; $questions[] = "I regularly discuss my faith with someone who is not a Christian."; $questions[] = "My faith is an important part of who I am as a person."; $questions[] = "When faced with a difficult decision, I look to God first."; $rating = array(1 => "Strongly Disagree", 2 => "Disagree", 3 => "Agree", 4 => "Strongly Agree"); $analysis1 = array_fill(0,16,"You should contact the office at St. Paul Baptist Church (973)746-8338 for more information about spiritual counseling."); $analysis2 = array_fill(0,9,"Your faith is strong, but you should contact the office at St. Paul Baptist Church (973)746-8338 to strengthen it"); $analysis3 = array_fill(0,8,"Your faith is awesome!! You should contact the office at St. Paul Baptist Church to join one of our ministries to help others."); $analysis = array_merge($analysis1, $analysis2, $analysis3); if (array_key_exists('was_submitted', $_POST) && $_POST['was_submitted'] == 1) { $answers = $_POST['answers']; if (count($answers)) { if (count(array_keys($answers)) < count($questions)) { $response = " Please answer all ".count($questions)." questions ";
}
else
{
$score = array_sum($answers);
$response = "Your score is $score: ".$analysis[$score]." ";
}
}
else
{
$response = "Please answer all ".count($questions)." questions ";
}
}
?>
|
