2011-10-06 66 views
0

我有我的代码,我想看看,它假设要求我的登录信息,然后当我点击提交它应该发布到PHP脚本,但是当我运行这个脚本,我什么都看不到,白色的空白屏幕,没有错误。 ..有任何想法吗?该文件被命名为login.php中的HTML身体没有显示...为什么我没有看到我的html或任何类型的错误?

<html> 

<head> 
<title>Authentication</title> 
</head> 

<body> 
<form action='loginLDAP.php' method='post' name='Auth'> 

<?php TabTop("Please Login"); ?> 
Please log in using your user name and your 
portal password:<p> 

<table cellspacing=3 cellpadding=3 class=ContentBodyTable> 
    <tr> 
     <td>Username: </td> 
     <td><input type=text name=login size=16 maxlength=15 class=textInput></td> 
    </tr> 
    <tr> 
     <td>Password: </td> 
     <td><input type=password name=password size=16 maxlength=15 class=textInput></td> 
    </tr> 
    <tr> 
     <td colspan=2><input type=submit value=Authenticate class=SubmitInput style='width:100'></td> 
    </tr> 
</table> 
</form> 
<?php TabBot(); ?> 

<!-- Set the focus to the login text field onload. --> 
<script language="JavaScript" type="text/javascript"> 
    document.Auth.login.focus(); 
</script> 


</body> 
</html> 
+2

看看你的PHPerror日志。 –

+0

我刚刚做了,我什么也没有得到error_reporting(-1); ... Html正文没有显示... – Bulvak

+1

请确保'loginLDAP.php'存在于同一个文件夹中。如果您的文件托管在Linux服务器上(很可能),请确保您的文件名拼写正确:文件名区分大小写。 –

回答

0

尽量摆脱< P的>在第12行。如果还是不行,请尝试注释掉tabtop()调用。如果这给你的形式,然后调试该脚本。它看起来好像该脚本有逻辑错误,而不是语法错误,所以没有语法错误。

+0

谢谢!被永远困住了,桌面就成了问题 – Bulvak

相关问题