Please make sure the name has been filled out properly."; $e1 = "yes"; } if (check_email_address($_POST['email'])) { } else { $error_message .= "

Invalid e-mail. Please enter correct e-mail address.

"; $e1 = "yes"; } if (strlen($_POST['question']) <= 0) { $error_message .= "

Please make sure the question has been filled out properly.

"; $e1 = "yes"; } $resp2 = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if ($resp2->is_valid) { } else { # set the error code so that we can display it. You could also use # die ("reCAPTCHA failed"), but using the error message is # more user friendly $error2 = $resp2->error; $e1 = "yes"; $error_message .= "

CAPTCHA invalid. Please type in the verfication characters correctly. (" . $error2 . ")

"; } if ($e1 == "no") { $error_message = "

Thank you for contacting the Student Assistance Center! Your message has been sent. During peak times, it can take several days to receive a response. If you need immediate assistance please call the Student Assistance Center at 865-694-6556. NOTE: Due to privacy issues, we are unable to provide specific information regarding your account via this form. We can only answer general advising questions. If you need advising specific to your account, please call 865-694-6556.

"; $subject = "Web Submission Form"; $question = stripcslashes($_POST['question']); $message = "Submitted: " . date('l, F j Y @ g:i a') . "\n"; $message .= "Name: " . stripslashes($_POST['name']) . "\n"; $message .= "E-mail: " . stripslashes($_POST['email']) . "\n"; $message .= "P Number: " . stripslashes($_POST['pnumber']) . "\n"; $message .= "Phone: " . stripslashes($_POST['phone']) . "\n"; $message .= "Question: " . stripslashes($_POST['question']) . "\n"; $from = "From: " . $_POST['email'] . "\r\n"; mail("advising@pstcc.edu", $subject, $message, $from); #Send auto-reply. mail($_POST['email'], "Thank you for contacting Advising and Curriculum!", "Thank you for contacting Advising and Curriculum and Pellissippi State. Your message has been received and will be responded to as soon as possible. During peak times, it can take several days to receive a response. NOTE: Due to privacy issues, we are unable to provide specific information regarding your account via this form. We can only answer general advising questions. If you need advising specific to your account, please call 865-694-6556.Should you need immediate assistance, please call 865-694-6556.\n\nPlease do not reply to this message as it is an autoreply.\n\nAdvising and Curriclum at Pellissippi State\nKnoxville, TN\nhttp://www.pstcc.edu\n865-694-6556", "From: noreply@pstcc.edu"); $sent = "yes"; } } ?> Ask A Question - Advising and Curriculum/Pellissippi State Community College