jazzman121
June 4th, 2003, 09:32 PM
here is what i wanna do.. i want to have a log in.. for my flash file.... its got a username field and password field... on submit... it sends the variables of 2 fields to a .php file... which checks if the user name and password match the user name and password in the .php file... it it does... it returns a varaible to the flash file...
here is what my php file is like...
<?php
$pass = $_POST['pass'];
$user = $_POST['user'];
//correct username and password ...
$orguser = "jazzman121";
$orgpassw = "test";
if ($passw==$orgpassw&$user==$orguser) {
$result = "ACCESS GRANTED";
}else {
$result = "ACCESS DENIED";
}
?>
im kinda new to php... so this code might not be right... i guess thats why its not working :sure:
anyways... how should my flash file look like?? please help
thanks... (if i have to change my php... please let me know about that too.. )
here is what my php file is like...
<?php
$pass = $_POST['pass'];
$user = $_POST['user'];
//correct username and password ...
$orguser = "jazzman121";
$orgpassw = "test";
if ($passw==$orgpassw&$user==$orguser) {
$result = "ACCESS GRANTED";
}else {
$result = "ACCESS DENIED";
}
?>
im kinda new to php... so this code might not be right... i guess thats why its not working :sure:
anyways... how should my flash file look like?? please help
thanks... (if i have to change my php... please let me know about that too.. )