Educational Plan Survey

0, 'acc' => 0, 'crr' => 0, 'ecc' => 0 ); if ( $bbStepA1 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { $scores['acc'] = $scores['acc'] + 1; } if ( $bbStepA2 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { $scores['acc'] = $scores['acc'] + 1; } if ( $bbStepA3 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { $scores['acc'] = $scores['acc'] + 1; $scores['crr'] = $scores['crr'] + 1; } if ( $bbStepA4 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { $scores['acc'] = $scores['acc'] + 1; } if ( $bbStepA5 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { $scores['acc'] = $scores['acc'] + 1; } if ( $bbStepA6 == 1 ) { $scores['acc'] = $scores['acc'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { $scores['hbl'] = $scores['hbl'] + 1; $scores['crr'] = $scores['crr'] + 1; } if ( $bbStepA7 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['acc'] = $scores['acc'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { } if ( $bbStepA8 == 1 ) { $scores['acc'] = $scores['acc'] + 1; } else { $scores['hbl'] = $scores['hbl'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } if ( $bbStepA9 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['acc'] = $scores['acc'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { } if ( $bbStepA10 == 1 ) { $scores['hbl'] = $scores['hbl'] + 1; $scores['acc'] = $scores['acc'] + 1; $scores['crr'] = $scores['crr'] + 1; $scores['ecc'] = $scores['ecc'] + 1; } else { } // sort by score highest to lowest asort($scores); $highScore = 0; $over7 = ""; foreach ( $scores as $key => $val ) { if ( $highScore == 0 ) { $highScore = $key; } if ( $val >= 7 ) { $over7 .= "$key,"; } } // end of look through scores //print "HighScore: $highScore
\nover7: $over7
\n"; //print_r($scores); if ( $answerBlock == "1111101011" || $highScore == 'hbl' ) { // home-based learning $recommendation = "Home-Based Learning"; $reclink = "http://azdl.sequoiachoice.org/"; } else if ( $answerBlock == "0000011111" || $highScore == 'acc' ) { // academic center learning $recommendation = "Academic Center Learning"; $reclink = "http://www.sequoiachoice.org/academic-centers-school"; } else if ( $answerBlock == "1101101011" || $highScore == 'crr' ) { // credit recovery $recommendation = "Credit Recovery"; $reclink = "http://www.sequoiachoice.org/credit-recovery-program"; } else if ( $answerBlock == "1111111011" || $highScore == 'ecc' ) { // early college credit $recommendation = "Early College Credit"; $reclink = "http://www.sequoiachoice.org/early-college-credit-program"; } else { // default to Home-Based Learning $recommendation = "Home-Based Learning"; $reclink = "http://azdl.sequoiachoice.org/"; } // end of get recommendation // get secondary recommendations if ( $over7 != "" ) { // loop through extra recommendations $over7arr = explode(",",$over7); for ( $o=0;$ohttp://azdl.sequoiachoice.org/\n"; } else if ( $oo == 'acc' && $highScore != 'acc' ) { // academic center learning if ( $orrec == "" ) { $orrec .= " program or our Academic Center Learning"; } else { $orrec = " program, Academic Center Learning".$orrec; } $orreclink .= "\n\nhttp://www.sequoiachoice.org/academic-centers-school"; $orreclinks .= "
\nhttp://www.sequoiachoice.org/academic-centers-school\n"; } else if ( $oo == 'crr' && $highScore != 'crr' ) { // credit recovery if ( $orrec == "" ) { $orrec .= " program or our Credit Recovery"; } else { $orrec = " program, Credit Recovery".$orrec; } $orreclink .= "\n\nhttp://www.sequoiachoice.org/credit-recovery-program"; $orreclinks .= "
\nhttp://www.sequoiachoice.org/credit-recovery-program\n"; } else if ( $oo == 'ecc' && $highScore != 'ecc' ) { // early college credit if ( $orrec == "" ) { $orrec .= " program or our Early College Credit"; } else { $orrec = " program, Early College Credit".$orrec; } $orreclink .= "\n\nhttp://www.sequoiachoice.org/early-college-credit-program"; $orreclinks .= "
\nhttp://www.sequoiachoice.org/early-college-credit-program\n"; } // end if extra } } else { // no extra recommendations $orrec = ""; $orreclink = ""; } // end if there is a secondary recommendation if ( $orreclinks != "" ) { $urls = "s"; } else { $urls = ""; } // build the message //$msg = "Thanks for filling out the Sequoia Choice Custom Education Plan form. We think our $recommendation $orrec program would be a good fit for your learning needs.\n\n"; //$msg .= "To learn more about our $recommendation $orrec program, you can go to the following URL".$urls.": \n\n$reclink $orreclink\n\n"; //$msg .= "If you have any questions about this program or any of our other programs, please feel free to contact us directly at 480-461-3222, on Facebook at http://facebook.com/SequoiaChoice or on Twitter at http://twitter.com/sequoiachoice"; //$msg .= "\n\nThank you for your interest in Sequoia Choice and our educational programs.\n\nThe Sequoia Choice Team\n\n\n\n"; if ( $your_name != "" ) { $msg = "Dear $your_name,\n\n"; } else { $msg = ""; } $msg .= "Thanks for filling out the Sequoia Choice Custom Education Plan form.\n\n"; $msg .= "We think our $recommendation $orrec program may be a good fit for your learning needs, but would love the opportunity to speak with you about all of our learning options. \n\n"; $msg .= "To learn more about our $recommendation $orrec program, you can go to the following URL".$urls.":\n\n"; $msg .= $reclink." ".$orreclink."\n\n"; $msg .= "If you have any questions about this program or any of our other programs, please feel free to contact us directly at 480-461-3222, or complete the student interest form at: http://www.sequoiachoice.org/contact-us\n\n"; $msg .= "\n\nThank you for your interest in Sequoia Choice and our educational programs.\n\nThe Sequoia Choice Team\n\n\n\n"; $headers = "From: Sequoia Choice \r\n"; $header .= "Bcc: jwilliams@edkey.org, bbutter@edkey.org\r\n"; if ( $your_email != "" && strstr($your_email,"@") ) { // try to send the email if ( @mail($your_email,"Your Custom Education Plan from Sequoia Choice",$msg,$headers) ) { $emailed = 1; } else { $emailed = -1; } // end if sent successfully } else { // no email given $emailed = 0; } // end if email given $insert = " insert into choice_bbSurveyResults (your_name,your_email,answerblock,recommendation,submittedon,emailed) values ('".addslashes($your_name)."','".addslashes($your_email)."','".addslashes($answerBlock)."','".addslashes($recommendation)."',".time().",$emailed) "; $insertq = mysql_query($insert); if ( mysql_affected_rows() > 0 ) { $addedSuccessfully = 1; } else { // no successfully entered $addedSuccessfully = 0; } // end if successfully entered ?>

Thank you for taking our Custom Education Plan Survey

An email has been sent to you with the following information.

We tried to send an email to you with the following information, but there was an error. We're sorry for the inconvenience.

Thanks for filling out the Sequoia Choice Custom Education Plan form.

We think our program would be a good fit for your learning needs, but would love the opportunity to speak with you about all of our learning options.

To learn more about our program, you can go to the following URL:



If you have any questions about this program or any of our other programs, please feel free to contact us directly at 480-461-3222, or complete the student interest form.

Thank you for your interest in Sequoia Choice and our educational programs.

The Sequoia Choice Team

Sequoia Choice has many different options to help you succeed as a distance learning student. By taking this quick survey you will be able to learn which of our programs will work for you, and how we can help you reach your educational goals. Your answers will not be saved once the survey is complete.

>
.
11. I would like an education plan emailed to me.