Form Tools
Which Path - Which API? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: Which Path - Which API? (/showthread.php?tid=1602)



Which Path - Which API? - braven - Sep 6th, 2011

I started from scratch on a new domain new server because I had lost admin password (now I have tutorial to fix that).

I read in the create new form process that if you are going to use PHP forms they need to be on the same domain as the form_tools is? BUT my form_tools is on coachdereksports_com and I'm using the forms on coachderek_com. (I made them PHP so I could use the recaptcha which isn't working & that's why I'm wondering if this is why).

Still, the emails my new forms are generating are perfect!

if I view the results online, some of the fields are empty that show up filled in the email versions (different domain different server)?

here's my question: Is the reason I can't get recaptcha to work because of the different domains/servers?

IF my Forms are created & processed on "domain 2" on "server 2" and Forms are USED on "domain 1" on "server 1"
Do I use the API & PATH for domain 1 or domain 2?

Thanks!


RE: Which Path - Which API? - Ben - Sep 7th, 2011

Hey Braven,

Quote:I read in the create new form process that if you are going to use PHP forms they need to be on the same domain as the form_tools is? BUT my form_tools is on coachdereksports_com and I'm using the forms on coachderek_com. (I made them PHP so I could use the recaptcha which isn't working & that's why I'm wondering if this is why).

Ah, actually - it's just for API forms. API forms need to be on the same server (I may say they need to be on on the same *domain*, but I think they'll work if they're on the same server as the Form Tools installation).

Forms (PHP or any other language) can be located anywhere, if they use the POST/direct submission method.

Quote:here's my question: Is the reason I can't get recaptcha to work because of the different domains/servers?

Yes, exactly. The reCAPTCHA is part of the API, which needs to be on the same server. The reason is that you can't include PHP files for execution on another server.

Sorry about that!

- Ben



RE: Which Path - Which API? - braven - Sep 7th, 2011

Thank you, Ben!
I just love these forms & am endlessly knocked out with how they perform.
I'm very sorry about the API thing-a-ma-bob (technical term) so I will have to find a work around for that so I can stop the spam. maybe if I call the old server which the domain is actually on.. well, I'll keep playing but again, thanks so much for all the help. This is such a friendly forum!

- Billie