I have a site where users can use a SafeCracker form to submit an entry. Once they submit the entry, they are taken to a confirmation page that also includes some code to automatically send out a series of emails.
I'm running into a problem where users bookmark the confirmation page, and then every time they go back to it, the emails are sent again.
Is there a way I can compare the entry date/time of the post with the current time, so for example, the emails will only be sent out within five minutes of the original post?
I know I could do something like:
{if entry_date == current_time}
email code here
{/if}
but that would only work if the times matched exactly. Is there a way to specify a range of a few minutes?