如何在同一页面中显示错误?
我的表单页面
<form id="freeform" method="post" action="/wp-content/themes/ecobiz/teklif.php" onsubmit="return validate_form(this)">
...
<?php
require_once(ABSPATH. '/wp-content/themes/ecobiz/recaptchalib.php');
$publickey = "6LeZGdESAAAAAOhZ0SRqLWXcq4TauDK9CUoZhNP8"; // you got this from the signup page
echo recaptcha_get_html($publickey);
?>
....
</form>
teklif.php
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
}
上面的 die 出现了 teklif.php,它看起来很奇怪。我希望模具消息显示在表单页面中,我的意思是同一页面。有什么解决办法吗?(对不起我的英语不好。)