Hello Fellow Coders,
This is an issue that I can't find in any searches, nor have I seen it before.
I wrote a file called main.php and this is what the code is:
<html>
<head>
<title>YourFertilityStory.com</title>
<?
$message = $_GET['message'];
?>
</head>
<body>
<script type='text/javascript' src='prelog.js'></script>
Hello,
<br>
Welcome to our site. If you have been looking for an easy way to control whether or not to have a baby, this proven method will work just fine.
<br>
<a href="register.php">Register</a> or <a href="passwordreset.php">Reset Password</a> or Log In: <br>
<?
if($message=="1"){
echo "You Must Enter Both A UserName And A Password";
}
elseif($message=="2"){
echo "Either The UserName Or Password You Entered Is Not Correct";
}
elseif($message=="3"{
echo "Your Account Has Been Suspended, Please Contact Us For More Information";
}
else {}
?>
<form name=login method=post action=checkuser.php>
<input name=username id=username><br>
<input type=password name=password id=password><br>
<input type=submit name=login id=login value="Log-In">
</form>
</body>
</html>
So then you goto www.datamt.org/fertility/main.php and you get a blank page, viewing source says that the source code is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>
I log-in to the server and look at the file, and it is in the correct directory, and if I open the file, the code is correct. This is one of a few files in this same folder, and it does this to about half of them. There is no pattern to the problem. I tried making all CHMOD's set to 755, but that does not change anything.
If you change if from main.php to just main it works in that it shows the content, but then you run into the problem of not understanding php. I tried this on another computer and it does the same thing.
Has anyone ever seen this before or have any ideas?
Thanks,