Código:
Ahora cuando quiero ingresar no me funciona, no me carga los datos del txt.analia:54ac3ed485c65e7d3f0622a1421fd72e hola:e26c062fedf6b32834e4de93f9c8b644
Código PHP:
<?php
$dato=explode(":",file("users.txt"));
if (($UserName == $dato[0]) && (md5($Password == $dato[1]))) {
header ("Location: index.php?UserName=$UserName");
exit;
} else {
header ("Location: login.php?Message=Invalid");
exit;
}
?>