5
votes
How to fix "This form has expired. Please refresh and try again."
if you have v 2.10 - try to replace
<input type="hidden" name="XID" value="{XID_HASH}">
with
<input type="hidden" name="csrf_token" value="{CSRF_TOKEN}">
The XID constant is ...
- 107
3
votes
Accepted
How to fix "This form has expired. Please refresh and try again."
I've looked through the source code for you but I'm drawing a blank. I thought there was an arbitrery timeout value in the token however in 2.9.2 this seems to have been depreciated (or I imagined it)!...
- 2,418
3
votes
Accepted
Adding quotes around a parameter causes error?
I believe you're running into problems with the parse order. When you add quotes, recipients becomes a valid parameter but it isn't parsed yet. When you remove the quotes, it becomes an invalid ...
- 688
3
votes
Contact form for free
There is a contact form bundled with ExpressionEngine: https://docs.expressionengine.com/latest/add-ons/email/contact_form.html
- 17.4k
2
votes
Accepted
Contact Form - Not receiving messages
The answer to this question turns out to be a lot simpler than once though. Looks like the main issue was that I didn't have two hidden required fields included:
<input type="hidden" name="...
2
votes
Accepted
Reduce spam from Contact form without CAPTCHA?
You need to check out Snaptcha from Put Your Lights On. A remarkable add-on for EE - install it and it just works: no configuration or hoopla. Have used on several installations and it is effective. ...
- 3,587
2
votes
Accepted
Contact form for free
There is also a free version of Freeform.
https://solspace.com/expressionengine/freeform
- 1,987
1
vote
Reduce spam from Contact form without CAPTCHA?
Short of using a Captcha there's no sure fire way to stop spam. https://putyourlightson.com/plugins/snaptcha-ee is a good Captcha because it works behind the scenes, I've used it and it does stop most ...
- 1,577
1
vote
Simple Contact form returning "Forbidden (403) CSRF verification failed. Request aborted." on submission
OK, I just solved this. I've got 2 urls, one redirects to the other.
Base path was set wrong in URL and path settings (set to the redirecting url)
Works fine once I updated the settings.
- 111
1
vote
Freeform Pro Submit Issue
check your general config settings.
Are you removing the index.php file?
When it gets stuck here: http://sxps.co.uk/?ACT=22
Try changing it to: http://sxps.co.uk/index.php?ACT=22 or set index.php as ...
- 1,987
1
vote
One email form, different recipeints
I'm not exactly sure how the above answer would have worked, I'm really not sure I understood it. :/
However, I was able to accomplish what I wanted pretty easily with Solspace's Freeform. Also I ...
1
vote
One email form, different recipeints
If you look at the Template Parsing order, you will see that segment variables are parsed before Preload Replace Variables. You can take advantage of that.
{if segment_2 == "foo"}
{...
- 6,108
1
vote
How to fix "This form has expired. Please refresh and try again."
There's also another possibility that I ran into with the "This form has expired. Please refresh and try again." error.
Using Stash, I recently turned on caching on my pages that include forms. The ...
- 251
1
vote
EE Built in contact form
The Email module doesn't know what to do with arbitrary POST data, it can only recognize fields that it is looking for. To build an email from multiple fields, use only the message field, but as an ...
- 2,255
Only top scored, non community-wiki answers of a minimum length are eligible