Php 正确输入re-catcha时打开jquery对话框&错误时

Php 正确输入re-catcha时打开jquery对话框&错误时,php,jquery,Php,Jquery,嗨,我正在尝试添加两个jquery对话框,当重新验证码成功时打开,另一个当单词不正确时打开 代码如下: <?php if (isset($_POST['submit_button'])){ require_once('recaptchalib.php'); $privatekey = "enter private code here"; $resp = recaptcha_check_answer ($privatekey,

嗨,我正在尝试添加两个jquery对话框,当重新验证码成功时打开,另一个当单词不正确时打开

代码如下:

<?php

 if (isset($_POST['submit_button'])){

 require_once('recaptchalib.php');
 $privatekey = "enter private code here";
$resp = recaptcha_check_answer ($privatekey,
                            $_SERVER["REMOTE_ADDR"],
                            $_POST["recaptcha_challenge_field"],
                            $_POST["recaptcha_response_field"]);

if (!$resp->is_valid) {

    $error = 'Oops incorect word<br> Please re enter the words or <br> Press the 
recycle button to generate new words';
     }
else {

    $sent = 'ok'; 
}
多谢各位


迈克

我在这里看不到你的jQuery。你也应该贴出来。谢谢你的回复。经过几个小时的搜索,我找到了答案。