PHP Read txt file and check if username password exists

前端 未结 3 698
一个人的身影
一个人的身影 2021-01-29 14:12

I have a bunch of passwords and usernames stored in a txt file and i need to check for matches. I know this is not a safe method but its for leaning purposes.

This code

3条回答
  •  抹茶落季
    2021-01-29 14:28

    I think there is nothing wrong with the logic of the original post.

    You should print all the variables to check whether they hold the correct value or not.

    the "$user" and "$password" variables are global or not since they would not be known within the braces of the other if block i.e in the block where you check $_POST['logg']

提交回复
热议问题