now() - INTERVAL 10 MINUTE"; $where[] = "ip_address = " . $db->quote($_SERVER["REMOTE_ADDR"]); $where[] = "type = 'contact'"; $sql = "SELECT count(*) FROM notice WHERE " . join(" AND ", $where); $rate = $db->fetch_single_value($sql); $resp = recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if ($resp->is_valid) { $db->insert("notice", array("note" => "sent e-mail to studio " . $studio->studio_id, "date_added" => $db->date_now(), "ip_address" => $_SERVER["REMOTE_ADDR"], "type" => "contact")); $subj = "Studio Contact"; $msg = stripslashes($_POST["message"]); $msg .= "\n\nThis message sent courtesy of The Violin Site - http://www.theviolinsite.com"; // ADJ: 100513 re-route to joey if rate >= 4 $email = ($rate >= 4) ? "jnb@theviolinsite.com" : $studio->email; mail($email, $subj, $msg, "From:" . $_POST["email"]); Header("Location: /studio/message_sent.html"); } else { $error = $resp->error; } } ?> The Violin Site
Violin Lessons | Violin Pedagogy | Free Sheet Music | Violin Teachers | Violinists
Violin Home Violin Teachers Directory Contact Studio

Contact Studio studio_name; ?>

 
Related Links

Your Name "/>
Phone Number "/>
Email Address "/>
Message

Incorrect Captcha!

 

 


Memorizing Music | Violin Makers | Famous Composers | Violin Making | Violin Music

This content is not endorsed by TheViolinSite