if($xtype!="")
{
$xid = $_REQUEST['xid'];
}
Else
{
session_destroy();
unset($_SESSION['uid']);
unset($_SESSION['pwd']);
unset($_SESSION['utype']);
unset($_SESSION['user']);
}
echo "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'><html><head><TITLE>TITLE</title><link rel='stylesheet' type='text/css' href='xmlTree.css'/></head><body><BR><table class=mtbl>";
$uname=$_SESSION['user'];
if($xtype=="")
{
echo
"<FORM METHOD=POST target=_self>Username:</br><Input type=text name=uid></p>Password:</br><Input type=password name=pwd></p><Input type=submit value=Login></FORM>";
}
The above code will display this in the browser :
"; $uname=$_SESSION['user']; if($xtype=="") { echo "
And I don't know why. I checked settings in my httpd.conf, php.ini and nothing seems to make any difference **On the actual web server and on browser to this page it works 100% . Just in my WAMP setup it displays some php code in the browser. So if you would navigate to the actual website, then it displays perfectly. I am trying to test the site on my wamp VM and have copied the files from the server to my wamp. ** I am guessing that somewhere there is some setting that is different...
Apache Version : 2.4.9 PHP Version : 5.5.12 MySQL Version : 5.6.17