A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Login - Mysql - Flash

  1. #1
    Junior Member
    Join Date
    Nov 2014
    Posts
    4

    Wink Login - Mysql - Flash

    Hello guys I have two problems (Hope someone can help me) AS2 please!:

    1) I need to take my movie flash to another frame after login

    2) I need to authenticate frame by frame the login (user)

    Here is my Flash Login Button Code:

    [CODE]on (release) {
    if (username != "" && pass != "") {
    loadVariablesNum("login.php", 0, "POST");
    _root.words = "Begin login process";
    } else {
    _root.words = "Please enter a username and password";
    }
    }

  2. #2
    Junior Member
    Join Date
    Nov 2014
    Posts
    4
    Flash Code:

    on (release) {
    if (username != "" && pass != "") {
    loadVariablesNum("login.php", 0, "POST");
    _root.words = "Begin login process";
    } else {
    _root.words = "Please enter a username and password";
    }
    }

  3. #3
    Junior Member
    Join Date
    Nov 2014
    Posts
    4
    PHP Code:

    <?php
    mysql_connect("localhost","xxxxxxx","xxxxxxx") or die();
    mysql_select_db("sincrom1_test") or die();

    $check = mysql_query("SELECT * FROM users WHERE username = '".$_POST['username']."'")or die();

    $check2 = mysql_num_rows($check);
    if ($check2 == 0) {
    print "words=User doesn't exist.&checklog=3";
    die();
    }
    while($info = mysql_fetch_array( $check ))
    {

    if ($_POST['pass'] != $info['password']) {
    print "words=Incorrect Password.&checklog=4";
    die();
    }else
    {
    print "words= $fullname You are logged in.&checklog=5";
    die();
    }
    }
    ?>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center