0 Replies Latest reply on Jun 4, 2007 3:40 PM by urbanrevolution

    flash.php login

    urbanrevolution
      greeting all i'm having some problems with my login...

      i've changed the source from http://www.kirupa.com/developer/acti...entication.htm
      to fit my needs and i seem to be having some problems.

      my form looks like this http://www.lightningmedia.com/form_test.php
      (stupid i know but it's what the client wants.) no username just a password...

      i'm still new at this and my scripting isn't the strongest...
      i'm trying to work it out...

      my PHP Code:
      <?php
      include("../lib/mysql2.0.php");
      $db = new MySQL;
      ## QUERY DATABASE TO SEE IF EMAIL ALREADY EXISTS
      $db->query("SELECT * FROM tech_info WHERE email = '$Name' AND double_optin=1");
      if($db->num_rows()) {
      $db->next_record();
      echo "1";
      } else {
      echo "2";
      }
      ?>
      my email /password is in the database as n8@creativenet.net this is what i'm trying to log in with..

      my actionscript


      Code:on the time line....
      stop();
      status="Enter your information and submit";
      this.onEnterFrame = function () {
      if(_root.checklog == 1){
      _root.gotoAndStop(2);
      }
      if(_root.checklog == 2){
      _root.gotoAndStop(3);
      }
      }

      Code:on the button ( i know this is old skool )
      on (release, keyPress "<Enter>") {
      if (Name != "") {

      status = "Begin Login Process - Wait...";
      loadVariablesNum("include/techinfo_login.php", 0, "POST");
      }
      }text field instance nameassinput
      var:Name

      i just can't seem to get it to work....

      any help would be great, thanks