Yes, timestamp is a much better suggestion.
Instead of simply setting the variable to true, set it to a timestamp, using time() or something similar.
For the second snippet, compare the variable and if it’s the same, you can set the $vMsg[count($vMsg)]=$_lang[’ef_thankyou_message’]; and return false instead of true. You’ll need to pass the &$vMsg along with the &$fields in the function arguments, or else declare it global in the function body.
Actually, seems to me that this would be something that could be added to the eForm code itself to prevent resubmissions of the same form.
I’ll see if I can can come up with something for 1.4.2

Hello
I need to be able to insert the following into the header of the email that is being sent. I have spent the past day looking as to how to do it with eForm and I am at a dead-end. Can someone please point me in a direction. Give me the steps of how to get it in.
Content-Type: application/x-gm-impdata\n\n
Regards,
Ken Roberts
Me too... I’m using eForm but I don’t really understand how to use validation... and this part of the documentation appears to missing in the zip file. Can I view or download it anywhere? Because I don’t want to bore the forum members with my questions
I love this eForm
Only the validation page is missing from the zip file? Cause i dont understand the validation explanation at the bottom of the index page.
[[ContactForm? &sendTo=`[(emailsender)]`]] [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[(email_sender)]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`46` !]
[[ContactForm? &sendTo=`[(emailsender)]`]] [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`46` !]
Newbie question:
For the following environment:
Modx: 0.9.5 rev 2106 (soft launch)
PHP: 5.1.6
OS: Centos
eForm: 1.4.1
Been playing with the default installation. I believe the contact us page [Contact Us (6)] has an error - any sends throws an error "could not instantiate mail function"
Looking at the code on [Contact us (6)]:
[[ContactForm? &sendTo=`[(emailsender)]`]] [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[(email_sender)]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`46` !]
If I change this to
[[ContactForm? &sendTo=`[(emailsender)]`]] [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`46` !]
it works. But - why is there a email_sender param? Shouldn’t the "&to" parameter be `[(emailsender)]` ?
This discussion is closed to further replies. Keep calm and carry on.