PHP登录脚本显示为空白 [英] PHP login script displays blank
本文介绍了PHP登录脚本显示为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
展开 | 选择 | Wrap | 行号
解决方案
嘿。
之前是否停止第13行的回声?
您是否有错误消息已开启?
此外,请考虑如果我将此消息作为我的用户名将会发生什么:
展开 | 选择 | Wrap | 行号
我得到一个空白屏幕,浏览器指向login.php文件
我刚刚读了转义字符.. 。 。哎呀
反正非常感谢你。我已经改变了一些代码以反映mysql_real_escape_string,这是我代码中的一个巨大漏洞。 。 。
Expand|Select|Wrap|Line Numbers解决方案Hey.
Does it stop before the echo on line #13?
And do you have error messages turned on?
Also, consider what would happen if I were to pass this as my username:
Expand|Select|Wrap|Line Numbers
I get a blank screen with the browser pointing at the login.php file
I just read up on the escape characters.. . . . yikes
anyways Thank you very much. I have changed the code a bit to reflect mysql_real_escape_string that is a huge hole in my code. . . .
这篇关于PHP登录脚本显示为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆