I`m making a site where users have to sign up. They will be contacted later once the site is ready.
Right now, I have a simple plugin that creates a form and sends me the contact info via email of anyone who signs up.
Is this a stupid plan? Should I have a form that submits the information to a database? or can the contact info be easily exported from gmail later when needed?
If you think a database is a better solution, can you recommend a simple PHP script with the necessary filters.
I`m building the initial site with WordPress. Want to be prepared in the event that a lot of people sign up.
I would almost assuredly save this information in a database.
You’ll be able to actually use this info as part of your site when it goes live. Gonna be hard to do that with user info scattered across thousands of emails.
Email is notoriously unreliable. The plugin may ‘send’ the email. But it might not wind up in your inbox. It might take years to get there. You might accidentally delete it. Who knows.
If you just have to have an email notification when people sign up then do both. Save it to the database and then shoot off the email.
As for the script to access the database. That’s a tad bit out of the scope of my intended answer. 🙂
However, I would take a look at the PHP MySQL manual. Or you can check out something like Doctrine.