TheConeHead
Programmer
I am trying:
Every thing works fine until I click on the bolded link, it then takes me back to the login screen as if the session has been lost... what am I doung wrong?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
Code:
<?
if ($uname = "username" && $pword == "password") {
$HTTP_SESSION_VARS['access'] = "yes";
}
if (isset($HTTP_SESSION_VARS['access'])) {
echo "[b]<a href='page.php?action=newAction'>New Teacher</a>[/b]";
if ($action == "newTeach") {
echo "new teacher";
}
} else {
echo "<form action='page.php' method='post'>";
echo "Username: <input type='text' name='uname' value=''><br>";
echo "Password: <input type='password' name='pword' value=''><br>";
echo "<input type='image' src='images/submit.gif' border='0' alt=''>";
echo "</form>";
}
?>
Every thing works fine until I click on the bolded link, it then takes me back to the login screen as if the session has been lost... what am I doung wrong?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)