Hi,
I use Frame. when i login and proceed to other pages, i was not able to get the session values.i tried to submit to the same page then i get the value. but if i open the same login page with the menu on the left frame i dont get anything. Please help.
-N.Balaji
following is the script used.
<?php
session_start();
if (!$userid)
session_register("userid");
else
echo $userid;
if ($submit)
{
$db=mysql_connect("localhost");
mysql_select_db("mysql",$db);
$result = mysql_query( "Select uid from userlist where uid ='$uname' and password='$upwd'",$db);
if ($myrow=mysql_fetch_row($result))
{
//$HTTP_SESSION_VARS["userid"]=$uname;
$userid = $uname;
// header("Location: http://$HTTP_HOST/rightfrm.php");
}
else
echo 'invalid User or Password';
}
?>