将文本显示为弹出窗口
Display text as popup
我想在弹出窗口中显示"Please go back and check the I am not a robot box",我该怎么做?这是在 html 页
如果未选择验证码(google 验证码),将显示此内容。
if(isset($_POST['g-recaptcha-response'])){
$captcha=$_POST['g-recaptcha-response'];
}
if(!$captcha){
echo '<h2>Please go back and check the I am not a robot box.</h2>';
exit;
}
提前致谢。
您可以使用 javascript 警告框。
警报("Please go back and check the I am not a robot box.");
http://www.w3schools.com/js/js_popup.asp
如果你想要更好的东西(这可能是一个更好的主意,因为警告框可以被解释为错误)我会选择 jquery 弹出窗口,对话框运行良好,这里是快速查看它在代码中的实现方式:
$('#dialog-confirm').dialog("option", "buttons", [
{
text: 'Please go back and check the I am not a robot box.',
click: function () { $("#dialog-confirm").dialog("close"); }
}
]); //end buttons
$('#dialog-confirm').dialog("open");
我想在弹出窗口中显示"Please go back and check the I am not a robot box",我该怎么做?这是在 html 页
如果未选择验证码(google 验证码),将显示此内容。
if(isset($_POST['g-recaptcha-response'])){
$captcha=$_POST['g-recaptcha-response'];
}
if(!$captcha){
echo '<h2>Please go back and check the I am not a robot box.</h2>';
exit;
}
提前致谢。
您可以使用 javascript 警告框。
警报("Please go back and check the I am not a robot box.");
http://www.w3schools.com/js/js_popup.asp
如果你想要更好的东西(这可能是一个更好的主意,因为警告框可以被解释为错误)我会选择 jquery 弹出窗口,对话框运行良好,这里是快速查看它在代码中的实现方式:
$('#dialog-confirm').dialog("option", "buttons", [
{
text: 'Please go back and check the I am not a robot box.',
click: function () { $("#dialog-confirm").dialog("close"); }
}
]); //end buttons
$('#dialog-confirm').dialog("open");