Hello All;
I am trying to open a File called cmi_list.txt ( stored at the same
level as the php file) and then load these into an array.
Now I check the $passport_codes with the value the User has entered and
set the $flag accordingly
<? ....
.....
$PASSPORT_CODES =file("cmi_list.txt");
$count = count($PASSPORT_CODES);
for($i=0 ; $i < $count ; $i++) {
if ($PASSPORT_COUNT[$i] != $p_code ) $flag = "true";
else $flag = "false";
}
if ($flag == "false")
{
echo "Passport Code did match record on file\n\n";
exit;
}
.....
.....
?>
This does not seem to work correctly.