robviperx Posted October 1, 2008 Share Posted October 1, 2008 hi i'm kinda a newbie at php but am trying to write a script that would allow me to drop a list in one box and then drop another list in another box and have it remove all the emails in list1 that are in list2 and place this updated list in a 3rd listbox after i click on a button???can anyone help with this? i've tried multiple things but nothing has worked. Quote Link to comment Share on other sites More sharing options...
aebstract Posted October 1, 2008 Share Posted October 1, 2008 Do you have a database with the lists? If you do, how is it setup and if not, where are you getting/generating your lists from? Quote Link to comment Share on other sites More sharing options...
robviperx Posted October 1, 2008 Author Share Posted October 1, 2008 I need to just be able to past the list into the list box.. no database. I just have two text files with the emails. one is the full list the other is a list of ones that need to be removed from the main list. Quote Link to comment Share on other sites More sharing options...
aebstract Posted October 1, 2008 Share Posted October 1, 2008 Are they separated by anything? that would be the easiest way is to separate each email by like a comma or something and put each list in to an array and explode the array by your separator. Then compare the lists and remove anything that matches up. Quote Link to comment Share on other sites More sharing options...
robviperx Posted October 1, 2008 Author Share Posted October 1, 2008 no nothing seperates them besides the fact that they are each on there own line. Quote Link to comment Share on other sites More sharing options...
robviperx Posted October 1, 2008 Author Share Posted October 1, 2008 I basically want to be able to past into listbox 1 and list box 2 and have it create the subtraction into list box 3 Quote Link to comment 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.