Web Analytics Made Easy -
StatCounter I need to edit a list. - CodingForum

Announcement

Collapse
No announcement yet.

I need to edit a list.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I need to edit a list.

    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!

  • #2
    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.

    Comment


    • #3
      I would ask how is this list stored?
      Former ASP Forum Moderator - I'm back!

      If you can teach yourself how to learn, you can learn anything. ;)

      Comment


      • #4
        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.?
        Last edited by burnt; Jun 18, 2002, 12:32 PM.

        Comment


        • #5
          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.
          Former ASP Forum Moderator - I'm back!

          If you can teach yourself how to learn, you can learn anything. ;)

          Comment

          Working...
          X