1 Reply Latest reply on Apr 22, 2007 11:40 AM by Dauntless

    Password system using IF Statement

    bobby2156
      I'm using an input box in as a way for the user to input a password and jump to a section they've been to before. I have the following code in my submit button:

      if (passinput="ARCADE") {
      loadMovieNum("arcaderoom.swf", 0);
      } else {
      passfeed = "The password you entered has not been recognised";
      }

      The problem is that when i input nothing, it loads the file anyway! Any ideas where i am going wrong?? Thanks, Bobby

      Got the problem fixed.. stupid mistake, lol. I wasn't comparing with ==