My code will not show up anything at all on the screen can someone guide me why this would be?
<?php
$pagetitle="Log in";
If (!$_POST['pass']) or (!$_POST['user']) {
echo"
<head></head>
<style type=\”text/css\”>
<!--
.style1 {
font-family: Tahoma, \”High Tower Text\”, fantasy;
font-size: large;
}
-->
</style>
<title>$pagetit le</title>
<body>
<form name=\”form1\” method=\”post\” action=\”home.c ms.php\”>
Username
<input type=\”text\” name=\”user\”>
<br>
<br>
Password
<input type=\”password \” name=\”pass\”>
<br>
<br>
Submit
<input type=\”submit\” name=\”Submit\” value=\”Submit\ ”>
</form>
<p> </p>
</body>
</html>";
elseif ($_POST['pass'] == "PASSWORD")&&($ _POST['user'] == "USER") {
print "success";
// For testing purposes
}
else {
echo"
<head></head>
<style type=\”text/css\”>
<!--
.style1 {
font-family: Tahoma, \”High Tower Text\”, fantasy;
font-size: large;
}
-->
</style>
<title>$pagetit le</title>
<body>
<form name=\”form1\” method=\”post\” action=\”home.c ms.php\”>
Username
<input type=\”text\” name=\”user\”>
<br>
<br>
Password
<input type=\”password \” name=\”pass\”>
<br>
<br>
Submit
<input type=\”submit\” name=\”Submit\” value=\”Submit\ ”>
</form>
<p> </p>
</body>
</html>";
}
?>
<?php
$pagetitle="Log in";
If (!$_POST['pass']) or (!$_POST['user']) {
echo"
<head></head>
<style type=\”text/css\”>
<!--
.style1 {
font-family: Tahoma, \”High Tower Text\”, fantasy;
font-size: large;
}
-->
</style>
<title>$pagetit le</title>
<body>
<form name=\”form1\” method=\”post\” action=\”home.c ms.php\”>
Username
<input type=\”text\” name=\”user\”>
<br>
<br>
Password
<input type=\”password \” name=\”pass\”>
<br>
<br>
Submit
<input type=\”submit\” name=\”Submit\” value=\”Submit\ ”>
</form>
<p> </p>
</body>
</html>";
elseif ($_POST['pass'] == "PASSWORD")&&($ _POST['user'] == "USER") {
print "success";
// For testing purposes
}
else {
echo"
<head></head>
<style type=\”text/css\”>
<!--
.style1 {
font-family: Tahoma, \”High Tower Text\”, fantasy;
font-size: large;
}
-->
</style>
<title>$pagetit le</title>
<body>
<form name=\”form1\” method=\”post\” action=\”home.c ms.php\”>
Username
<input type=\”text\” name=\”user\”>
<br>
<br>
Password
<input type=\”password \” name=\”pass\”>
<br>
<br>
Submit
<input type=\”submit\” name=\”Submit\” value=\”Submit\ ”>
</form>
<p> </p>
</body>
</html>";
}
?>
Comment