-
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";
}
}
-
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";
}
}
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|