...

View Full Version : I need to edit a list.



burnt
06-18-2002, 12:52 AM
I have a long list of email names that I need to check for duplicate names.

Is this something I can do with JavaScript?

If so please advise.

If not what will accomplish this task?

Thanks!

x_goose_x
06-18-2002, 01:23 AM
How is the list set up? Is it an array? Is it just a file with a list of emails? The easiest way that I know of would be to set up arrays and use the following:

arr = new Array();
same = "";

for (x=0; x<arr; x++) {
for (y=0; y<arr; y++) {
if (arr[x]==arr[y]) { same += x+" , "+y+"are the same<br>" };
}
}
pop = window.open();
pop.document.write(same)

if it's just a file, you can use asp to read the file and paste into an array.

whammy
06-18-2002, 01:35 AM
I would ask how is this list stored?

burnt
06-18-2002, 04:10 PM
It is a log.txt file with an email address on each line.

I have a little knowlegde of JavaScript and Perl, mostly just enough to read and hack it.

I have never used asp but I design in GoLive and my server supports it so I could learn.

I hacked a FormMail script by Matt Wright to log the addresses from the update bar on the first page and the users who send e-greetings from my site.

I could possibly change log.txt to something else.?

whammy
06-19-2002, 02:56 AM
Not sure how you'd do it in GoLive or Perl... but in ASP or PHP or any other server-side language you'd just loop through the list of email addresses to see if you find a match.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum