if (isset($_POST['submit']) && $_POST['send_email'] == 'yes') {
    // get the submitted math answer
    $rand_post_total = (int)$_POST['rand_total'];
    // compare the submitted answer to the real answer
    $rand_total = (int)$_POST['rand_num'] + (int)$_POST['rand_num2'];
    // if it's a match then send the email
    if ($rand_total == $rand_post_total) {
        cp_contact_ad_owner_email($post->ID);
        $msg = '<p class="green center">' . __('Your message has been sent!', 'cp') . '</p>';
    } else {
        $msg = '<p class="red center">' . __('ERROR: Incorrect captcha answer', 'cp') . '</p>';
    }
}
			
			
			
			
			
				Almost (May 28th, 2011)
There are currently 1 users browsing this thread. (0 members and 1 guests)