Home › Forums › Invisible reCaptcha › How-To and Troubleshooting › Inserting the code into a custom form – help! :) › Reply To: Inserting the code into a custom form – help! :)
June 4, 2017 at 10:43 pm
#4515

MihChe
Keymaster
Hi Ann,
Just insert
<?php do_action(‘google_invre_render_widget_action’); ?>
before </form>
Change your form method type from GET to POST
This <form action=”/apixml.php” method=”GET”>
should be <form action=”/apixml.php” method=”POST”>
On the server side, where the form is validated just add
$is_valid = apply_filters(‘google_invre_is_valid_request_filter’, true);
if( ! $is_valid )
{
// handle error here
}
else
{
// continue with your logic
}
~Mihai