Hi! Thanks, Viktor. Exactly what I needed right now :) Just a small but important update from the end of 2023: 1) you have to get a response only with POST (not GET) so need to use stream_context_create for file_get_contents and 2) now reCaptcha warns in docs that it's not ok to init on page load (as tokens are valid for 2 minutes!) - you have to get tokens right before you do some action that should be validated (like clicking submit button).
Is there any way of sending the form without refreshing a full page? Imagine when the form is at the bottom of the long page so when you click send button, the page is reloaded and you stay at the top of the page even if it scrolls down to the bottom this behaviour is wired. Is there any better way of doing this?