<?php
// John123 is username, UDXddM is the password linked to that username. Same markup for all others.
$login['John123'] = "UDX6672ddM";
$login['Ramsey123'] = "iGO4u4234TC";
$login['Nikita123'] = "KLWRES31BYKRBPJM";
$login['Emma123'] = "PNYUhdhCHU34AQPSUYJ";
$login['Anna123'] = "PNYZB512SGJkfDALT";
$login['Peter123'] = "SNZasdVPB56HZSUhkET";
$login['Bob123'] = "VLPBPH778UATAaGM";
$login['Ron123'] = "FDSasArhCU90TPDSC";
$login['Will567'] = "GQgCUF083GTZgsTFPG";
$login['Oliver123'] = "VAGSE4234GKJXY";
foreach()
{
}
?>
Using a foreach loop I want to see if the username matches the password (for example if I were to type Username: John123 and Password: UDX6672ddM in the login page I made I want to echo something. How do I check if the Username and Password match?