I need to process form data in a template. I have enabled PHP for the template and am using require() to pull in the processing script (which works flawlessly outside of EE). The form resides outside of EE; the action attribute points to the template.
When I submit the form, I get the following error:
This form has expired. Please refresh and try again.
I disabled CSRF protection and the error persisted.
Any ideas how to get this to work?