Flash, Php, Oracle login help

I am trying to send my username and password from flash to php and send back a value to the flash to make sure if you are logged in or not, but it keeps posting “Unidentified” in the output of flash and does not change my flash window

here is the flash code:
frame 1:
stop();

var sent:LoadVars = new LoadVars;
var receive:LoadVars = new LoadVars;
loadVars.nameOfVariable = valueOfVariable;
send.Username = username.text;
send.Password = pass.text;

/this.onEnterFrame = function () {
if(checklog == 1){
_root.gotoAndStop(2);
}
if(checklog == 0){
_root.gotoAndStop(3);
}
}
/

flash button:
on (release, keyPress “<Enter>”)
{

sent.sendAndLoad("http://localhost/Checklogin.php",receive,"POST");
receive.onLoad = function()
    {
        checklog = this.toflash;
        trace(checklog);
    }
if(checklog == 1)
    {
        gotoAndPlay(3);
    }
else if(checklog == 0)
    {
        gotoAndPlay(4);
    }

}

Php code:
<?PHP

$usern = $_POST[‘Username’];
$passs = $_POST[‘Password’];

$connection = oci_connect(‘system’, ‘rms2010’, ‘ORACLE’);
if (!$connection)
{
echo (“Couldn’t make a connection!”);
exit;
}
if ($connection)
{
echo (“connected”);
}

$sql = “SELECT COUNT(*) AS num_rows FROM CUSTOMER WHERE CUSTOMER_ID = ‘$usern’ AND CUSTOMER_PASSWORD = ‘$passs’”;
$sql_statement = oci_parse($connection,$sql);
oci_define_by_name($sql_statement,“NUM_ROWS”,$num_rows);
oci_execute($sql_statement);
oci_fetch($sql_statement);

if ($num_rows == 1)
{
echo urlencode("&toFlash = 1");
}
else if($num_rows == 0)
{
echo urlencode("&toFlash = 0");
}
//print ($num_rows);

oci_close($connection);

?>

If anyone can help please reply.