ROCKINDANO Posted August 30, 2011 Share Posted August 30, 2011 I am trying to create a form on my website to have people sign up for email notifications. Little confuse on this. i know i can do a form to submit info into a db or for an email to be sent to me. i have seen some on website that have a sign up form for newsletters or etc... how do these forms work? is there someone receiving all these emails or getting signed up user from a db and emailing each person? confuse on this topic. can someone explain? Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/ Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 30, 2011 Share Posted August 30, 2011 1) Learn PHP 2) Learn MySQL Commands 3) function.mail.php: LINK Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263616 Share on other sites More sharing options...
ROCKINDANO Posted August 30, 2011 Author Share Posted August 30, 2011 so pretty much is insert into a db and review db constantly to check for people that sign up? Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263617 Share on other sites More sharing options...
Genesis730 Posted August 30, 2011 Share Posted August 30, 2011 In the DB you should have a column called newsletter (or some variation that is significant so you know what it is for) and either a 1 or 0 for true or false, whether they want the newsletter or not... Then you can make a textbox form that when you click sent, it queries the DB and collects all the emails from users that have newsletter set to 1 (for true) and sends it to those emails. Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263621 Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 30, 2011 Share Posted August 30, 2011 Genesis730 answered it. Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263623 Share on other sites More sharing options...
ROCKINDANO Posted August 30, 2011 Author Share Posted August 30, 2011 "Then you can make a textbox form that when you click sent, it queries the DB and collects all the emails from users that have newsletter set to 1 (for true) and sends it to those emails." a textbox? can you point me to a guide or some example? Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263625 Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 30, 2011 Share Posted August 30, 2011 you may want to post this at freelance section if you want people to code for you from the scratch. but nonetheless, link google is your bestfriend... Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263626 Share on other sites More sharing options...
ROCKINDANO Posted August 30, 2011 Author Share Posted August 30, 2011 thank you. i have written one but need to modify my db to collect the 1's and 0's and newsletter. thanks for your help Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263627 Share on other sites More sharing options...
Genesis730 Posted August 30, 2011 Share Posted August 30, 2011 ROCKINDANO i sent you a link to a very basic example, it's at http://piratepad.net/QkbxCuYxCz this example has no error checking or security (which you should have so nobody goes and sends out emails to your users... but should be a starting point. Quote Link to comment https://forums.phpfreaks.com/topic/246044-email-update-form/#findComment-1263635 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.