Page 1 of 1

Change Page Suffix to .php?

Posted: Sun May 28, 2023 2:28 am
by jlkane
We use the excellent Form Tools toolkit (https://formtools.org/) to implement a number of forms on our site. This week, we got attacked by a bot that made a large number of spam submissions, so it's time to add a reCAPTCHA to our forms... but there's a catch (pardon the pun). The Form Tools documentation says:
Your form page needs to be a .php file (or whatever file extension is used for PHP on your server).
We're using pretty URLs. Is there a way for me to force only the few pages that include forms to present themselves with the .php file suffix?

For reference, our site is:
https://weaversguildofrochester.org
and a typical form-bearing page is:
https://weaversguildofrochester.org/membership-form

Thanks in advance for your help,
Jim

Re: Change Page Suffix to .php?

Posted: Sun May 28, 2023 2:58 am
by DIGI3
The easiest way would probably be to just add, for example, membership-form.php in the 'url' field for that page. Or you could give the non-pretty url to the script (index.php?page=membership-form)

Re: Change Page Suffix to .php?

Posted: Sun May 28, 2023 3:12 am
by jlkane
Thank you for both suggestions... and for the VERY prompt help! I'll try both approaches and report back after the holiday weekend.

Much obliged,
Jim