2013 Reading at Alto Elementary

{php} require_once $_SERVER['DOCUMENT_ROOT'].'/2010/recaptchalib.php'; $to='JMiller@lowell.k12.mi.us'; $email = 'questionnaire@lowellbaseball.com'; $messageSubject='Parent Video Questionnaire'; $displayForm = true; if ($_POST){ $privatekey = "6LdEA8MSAAAAAHfRujEaeU55fcSXPdwvjgE4uCJt"; $resp = recaptcha_check_answer ($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]); if (!$resp->is_valid) { $response = 'The CAPTCHA wasn\'t entered correctly. Please try it again.'; $displayForm=true; } else { foreach($_POST as $k => $v){ if($k != 'recaptcha_challenge_field' && $k != 'recaptcha_response_field'){ $key = ucwords(str_replace("_", " ", $k)); $body .= "$key: $v\n"; $$k = $v; } } if ($body && !$crack){ if (mail($to, $messageSubject, $body, 'From: '.$email."\r\n")){ $displayForm=false; $response = '

Your questionnaire was successfully sent.

'; $response .= '


'; } } else if ($crack){ // cracking attempt echo '

Your message contained e-mail headers within the comments. This is a sign of a cracking attempt and your message was not send.

'; } else { // form not complete echo '

You have to at least write something. I can\'t have people sending out blank forms. Try again.

'; } } } echo '

Parent Video

'; if($displayForm){ if(!empty($response)) echo '


'; echo '

Parents, please watch the video below. When you are done please fill out the the questionnaire under the video.

'; echo '

'; echo '

Download the Video

'; echo '

Mac Users: Download Flip 4 Mac to play WMV files on your Apple Computer

'; /*echo '

*/ echo '

Parent Questions

1. What is your player\'s name?
2. What level does he play?
3. Who should the player talk to first in regards to their role?
4. What is the best thing you can provide to your player during the season in your role as a parent?
5. What tolerance level do we have for bantering umpires or other teams?
6. Who is the Parent Representative for baseball and our Athletic Boosters?
7A. Did you like or dislike, being able to view this video at your own convenience vs having to come to the high school for a meeting?Like Dislike
7B. Why?
'; $publickey = "6LdEA8MSAAAAAEbhsJa68TrK4nwgxNp9bjId6H1s"; echo '
'; echo '

'; } else { echo $response; echo '
'; }
Grand Rapids Christian0-00-0
Forest Hills Central0-00-0
East Grand Rapids0-00-0