<?
if(!empty($_POST['uname']) && !empty($_POST['pword'])) {
$conn =
mysql_connect("localhost","username","password");
$db = mysql_select_db("database");
$username = $_POST["uname"];
$password = $_POST["pword"];
$result = MYSQL_QUERY("SELECT * from users WHERE
username='$username'and password='$password'")
or die ("Name and password not found or not matched");
$worked = mysql_fetch_array($result);
$username = $worked[username];
$password = $worked[password];
$email = $worked[email];
$crap = .$username;
$vars = "".$crap;
echo $var
?>
flash:
on (release) {
myVars = new LoadVars();
myVars.uname = username.text;
myVars.pword = pass.text;
myVars.load("http://localhost.com/neo.php");
myVars.onLoad = function(success) {
if (success) {
if (this.crap == username.text) {
gotoAndPlay(2);
}
}
};
}
is that all correct? i'm thinking maybe the "== username.text" might be wrong but im not sure at all :s
if you guys can help that would be amazing!
