//start session
session_start( );
//save data to session
session_register("sessdata");
//data to save
$sessdata = $username;
if( $row["type"] == "st" )
{
header('Location:try.php');
exit;
}
if( $row["type"] == "ag" )
{
header('Location:agent.htm');
exit;
this is the agent.htm session
//start session
session_start();
//save data to session
session_register("store2");
$store2 = $HTTP_SESSION_VARS["sessdata"];
print("$store2");
?>
inside a agent htm there is a link to data.htm
this is data.htm session
//start session
session_start();
$sesssss = $HTTP_SESSION_VARS["sessdata"];
//save data to session
session_register("sessdata");
@ $link1 = mysql_connect('localhost','root', '');
if (!$link1)
{
print("Error: Could not connect to database. Please try again later.");
exit;
}
so after i login to agent.htm i can oni click on one option if i wan to click back and chose another option there will be a warning message show:
Failed opening 'c:\inetpub\wwwroot\project\data.php' for inclusion(include_path ='.;c:\php4\pear')in
unknown on line 0
so do u know what go wrong?