Strange issues while running winPHP on IIS6.0
Posted: Thu Aug 14, 2008 3:18 am
I am getting blank pages when I add code like:
EXAMPLE: - Page that works:
PAGE: Now I add a if then block and blank page is what shows up:
Results - this is what the source of the page that is outputed:
Code: Select all
if ($username = = "letmein") {
print ("Welcome back, friend!");
}
else {
print ("You're not a member of this site");
}
EXAMPLE: - Page that works:
Code: Select all
<html>
<head>
<title>A BASIC HTML FORM</title>
<?PHP
$username = $_POST['username'];
print ($username);
?>
</head>
<body>
<FORM NAME ="form1" METHOD ="POST" ACTION = "">
<INPUT TYPE = "TEXT" VALUE ="username" NAME = "username">
<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login">
</FORM>
</body>
</html>
PAGE: Now I add a if then block and blank page is what shows up:
Code: Select all
<html>
<head>
<title>A BASIC HTML FORM</title>
<?PHP
if (isset($_POST['Submit'])) {
$username = $_POST['username'];
if ($username = = "letmein") {
print ("Welcome back, friend!");
}
else {
print ("You're not a member of this site");
}
}
?>
</head>
<body>
<FORM NAME ="form1" METHOD ="POST" ACTION = "basicForm.php">
<INPUT TYPE = "TEXT" VALUE ="username" NAME = "username">
<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Login">
</FORM>
</body>
</html>
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY>
<META content=QRJATYDIMO name=SKYPE_FRAMEID>
<META content=QRJATYDIMO name=SKYPE_FRAMEID></HTML>