snuggles79 Posted December 9, 2008 Share Posted December 9, 2008 I have created a nifty little mailing list script. At the moment I have set it up to check to see if the e-mail address is already subscribed but also to check if the ip address has already been used (the ip address is stored when they sign up). Is this a wise thing to do? My plan is to check whether the IP address is in the DB and if, it is, display one thing on the page and, if not, display the mailing list subscription box. What are the pitfalls of doing this? Obviously, if people have a dynamic IP address then they're always going to get shown the form but I am talking about for those with static IP addresses. Just after points of views really. Link to comment https://forums.phpfreaks.com/topic/136198-mailing-lists-and-ip-addresses/ Share on other sites More sharing options...
gevans Posted December 9, 2008 Share Posted December 9, 2008 If two people from one computer try to sign up (imagine a family computer with a static ip) the second (and third etc..) person to try will be unable to. Link to comment https://forums.phpfreaks.com/topic/136198-mailing-lists-and-ip-addresses/#findComment-710437 Share on other sites More sharing options...
snuggles79 Posted December 9, 2008 Author Share Posted December 9, 2008 If two people from one computer try to sign up (imagine a family computer with a static ip) the second (and third etc..) person to try will be unable to. Yeah that was the only possible problem I thought of so I think I'd get it to display the full form if the ip address is not in the db and, if it is display a link to sign up rather than the full form. Link to comment https://forums.phpfreaks.com/topic/136198-mailing-lists-and-ip-addresses/#findComment-710453 Share on other sites More sharing options...
jnerotrix Posted December 9, 2008 Share Posted December 9, 2008 are the subscribing users registered? if so u can give each registered user a "member_id" in the mysql database and then just check if their member_id is the table so when the subscribe it adds their *email & member_id to the table then checks if the member_id is already there if it is display page or if it isnt display display the mailing list subscription box Link to comment https://forums.phpfreaks.com/topic/136198-mailing-lists-and-ip-addresses/#findComment-710927 Share on other sites More sharing options...
gevans Posted December 10, 2008 Share Posted December 10, 2008 @jnerotrix From my experience I'd want everyone to be able to subscribe not just members Link to comment https://forums.phpfreaks.com/topic/136198-mailing-lists-and-ip-addresses/#findComment-710949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.