1st of all, I know this is a big ask.
2nd of all, I don't have access to a database like mysql so my data is in flat files (txt).
3rd of all, I posted this 1 here because not many pll deal with flat files
I have made a script where a visitor can sign up and it makes a (user).txt file. each bit of data is stored on a different line...
example: of Megahertza.txt
Megahertza
Radeon
Computers, Cars, PHP
Australia
I am having trouble making a script to logon....
I need a script of some hints on a script that would check if a user and password from a "form" matches to the username and the password. In this case "Radeon" is the password.
So far i have used
$name = $_get[name];
$pass = $_get[pass];
$filename = "User/" . $name . ".txt";
$fileget = file($filename);
if (file_exist($filename)) {
If ($fileget[2] == $pass) {echo 'Log In, this where other stuff goes';}
}
I need script that does what this script was ment to do or some hints on making 1.... thanks