formtools / core

The Form Tools Core.
https://formtools.org
207 stars 78 forks source link

Issue with using captcha and successfully sending an email #288

Open wolftone1916 opened 6 years ago

wolftone1916 commented 6 years ago

So I'm currently using the formtools and am using the recaptcha from Google. I used their code and it used to work, not sure if it's not working now because I upgraded to php 7.1 but unless I add in the following lines:

$g_api_recaptcha_site_key = "yyyyyyyyyyyyyyyyyyyyyyyyyyy"; $g_api_recaptcha_secret_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

to the config.php, it will not submit the form, instead it goes to an error page saying the process.php couldn't be loaded.

If I add those lines in, it submits it successfully but now I don't get any emails about the submission. I have successfully sent test emails but an actual form submission doesn't send an email.

I tried to follow the tutorial on the site about how to include a captcha but unfortunately the instructions say to put a few php codes on the form page. I'm using my own form and not the form builder form. When I put in the php coding, it seems every time the php code shows a > it breaks the php and instead shows it written on the page. So, I guess my issue right now is both the php breaking when I try to use the method you showed to include a captcha and then and now that I can't get the formtools to send the email along with the submission. It is sending it to the database just fine but not the email.

Jarod997 commented 2 years ago

Same problem, only mine goes to a blank page.

I think it has something to do with SSH. But I'm just a guy trying to run a web page. :P

Jarod997 commented 2 years ago

Same problem, only mine goes to a blank page.

I think it has something to do with SSH. But I'm just a guy trying to run a web page. :P

My fix, just now, Forms > (Form name) > Views tab, General sub-tab, "Can add submissions": yes. (was no). Default Values for New Submissions -- leave as is.

Seems to work fine now.