I realize that this question has been asked many times, but I’ve yet to find a flatfile version.
I’m looking for a way to achieve the following in PHP or CGI-PERL, preferably PHP:
- A person submits their email address via a form.
- The email is then stored (temporarily) in a flatfile database (temp_emails.txt)
- The person then receives an auto-reply email with a link to confirm their email address.
- Upon confirming by clicking the link, their email address is then
saved to a new file.
(confirmed_emails.txt for example).
One way that I’ve thought of, is some form of "opt-in" method.
Is this possible without SQL or a similar database?
It’s possible.
When writing the email to the temp_emails.txt file open it like such:
They get their link confirm.php?email=xyz@abc.com