0) { //The goal sheet has been filled out before and thus values can be filled in... $sql = 'SELECT answer from answers where uid=' . $GLOBALS['locationinfo']['uid'] . ' AND qid=' . $qid; $result = mysqli_query($GLOBALS['conn'],$sql); if (!$result) { echo "Could not successfully run query ($sql) from DB: " . mysqli_error($GLOBALS['conn']); exit; } $row =mysqli_fetch_assoc($result); $answer = $row['answer']; //list($person1, $person2, $person3, $person4, $person5) = explode("::", $answer); $goalAnswers = explode("::", $answer); mysqli_free_result($result); } else { //The question has not been answered before, so values are empty... $goalAnswers = array_fill(0, 32, ''); } //At this point, all previous answers are contained in array called goalAnswers echo '

Seeking Professional Help Goal Sheet

 

'; //Save answers when submitted, using request values... $action = $_SERVER['REQUEST_URI']; $referer = '#'; $generate_form = true; if (isset($_REQUEST["Submit"]) && ($_REQUEST["Submit"] == 'goalsheet')) { //save answers to DB $goalArray = array(); if (isset($_REQUEST["3cbt"])) $cbt = $_REQUEST["3cbt"]; else $cbt = "off"; if (isset($_REQUEST["3med"])) $med = $_REQUEST["3med"]; else $med = "off"; if (isset($_REQUEST["3emdr"])) $emdr = $_REQUEST["3emdr"]; else $emdr = "off"; if (isset($_REQUEST["3gtr"])) $gtr = $_REQUEST["3gtr"]; else $gtr = "off"; if (isset($_REQUEST["3bpp"])) $bpp = $_REQUEST["3bpp"]; else $bpp = "off"; array_push($goalArray, $_REQUEST["1a"], $_REQUEST["1b"], $_REQUEST["1c"], $_REQUEST["2a"], $_REQUEST["2aDur"], $_REQUEST["2b"], $_REQUEST["2bDur"], $_REQUEST["2c"], $_REQUEST["2cDur"], $cbt, $med, $emdr, $gtr, $bpp, $_REQUEST["4aN"], $_REQUEST["4aP"], $_REQUEST["4bN"], $_REQUEST["4bP"], $_REQUEST["4cN"], $_REQUEST["4cP"], $_REQUEST["4dN"], $_REQUEST["4dP"], $_REQUEST["5a"], $_REQUEST["5b"], $_REQUEST["5c"], $_REQUEST["5d"], $_REQUEST["5e"], $_REQUEST["6a"], $_REQUEST["6b"], $_REQUEST["6c"], $_REQUEST["6d"], $_REQUEST["6e"]); $goalAns = implode("::", $goalArray); if ($numoftimesanswered > 0) { $sql = 'UPDATE answers SET timestamp=NOW(), answer="' . $goalAns . '" WHERE uid=' . $GLOBALS['locationinfo']['uid'] . ' AND qid=14'; } else { $sql = "INSERT INTO answers ( qid, uid, timestamp, answer ) VALUES ( 14, " . $GLOBALS['locationinfo']['uid'] . ", NOW(), '" . $goalAns . "')"; } $result = mysqli_query($GLOBALS['conn'],$sql); if (!$result) { echo "Could not successfully run query ($sql) from DB: " . mysqli_error($GLOBALS['conn']); exit; } $generate_form = false; echo '

Your Seeking Professional Help Goal Sheet has been saved! Your Seeking Professional Help Goal Sheet will be available in your Mastery Tools area of your account.

'; echo '

 

Professional Help Home

'; } if ($generate_form == true) { echo '
'; ?> '; ?> '; ?>

Cognitive-Behavioral Therapy
Medications
Eye Movement Desensitization and Reprocessing (EMDR)
Group Treatments

'; ?> '; ?>
To-do's  
Should I seek professional help? Identify what I would like to get out of professional counseling:
(example: I would like to find someone who would listen to me and who I felt comfortable talking to)
 
1.
 
2.
 
3.
 
Should I seek professional help? Identify my own stress reactions:
(example: My heart beats really fast sometimes. Duration: usually lasts 15 minutes)
 
1.
 
2.
 
3.
Determine which treatments I am interested in (check the treatment(s) that interest(s) you):
Create a list of potential counselors:
 
Name:
 
1.
 
2.
 
3.
 
4.
 
Gather information using the suggested online resources:
 
(example: http://mentalhealth.about.com/)
 
1.
 
2.
 
3.
 
4.
 
5.
 
Using the information above, develop a script or a list of questions you would like to discuss with each therapist that you contact:
 
(example: What kind of treatments for trauma do you provide?)
 
1.
 
2.
 
3.
 
4.
 
5.


Professional Help Home