I have this programme in php and i don't know why the output doesn't appear?

I have this programme in php and i don’t know why the output doesn’t
appear?the text after echo dosen’t appear
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>

<form action=“simple.php” method=“post”>

<label>userName: <input type=“text” name=“username” /></label>

<label>password: <input type=“text” name=“password” /></label>

<input type=“submit” value=“SUBMIT” />
</form>
<?
$username=$_post[username];
$password=$_post[password];
if (($username==“dina”)&&($password==“lion”… {
echo “ok you can acsess!”;
}
else {
echo ‘<p> denied </p>’;
}
?>
</BODY>
</HTML>

Have you tried using <?php instead of <?

Sometimes the setup won’t allow <?.


<?php
$username=$_POST[username]; //pretty sure POST has to be capital - I could be wrong though
$password=$_POST[password];
if ($username=="dina" && $password=="lion") { //no need for extra brackets inside unless you want to group logic together
echo "ok you can acsess!";
}
else {
echo '<p> denied </p>';
}
?>

thank youuuuuuuuuuuuuuuuuuuuuu alot