试图在登录表单php中更改登录错误

时间:2017-01-23 11:21:43

标签: php login error-handling

您好我正在尝试更改登录错误但无法更改此处是我的代码..

with open(YdPath + yFileDate + '.txt', 'r') as AvgTemp:
    for line in AvgTemp:
        line = line.strip().split(',')
        AvTemp += float(line[1])
print AvTemp

如果我们用户输入错误的用户名或密码,则会收到错误

Date    Unit-1      Unit-2
1/1/2017    250        300
1/2/2017    150        225
1/3/2017    320       null
1/4/2017    null       200
1/5/2017    100        200

但我想只显示错误为'输入正确的用户名或密码'我怎样才能做到这一点 谢谢

0 个答案:

没有答案