php - Display recaptcha error message on the same page -
i've got 2 pages.
page 1 has form posts values page 2
page 2 has following:
if (!$resp->is_valid) { // happens when captcha entered incorrectly die ("the recaptcha wasn't entered correctly. go , try again. " . "(recaptcha said: " . $resp->error . ")"); } else {
instead of display die
output on page 2, how display value or more appropriate value on page 1 under recaptcha control?
you make on page 1 if (isset($_post['submit')){...}
block. in block check recaptcha , echo ""
error message.
Comments
Post a Comment