if (isset($_POST['postTarget'])) {
$json = $firebase->get(DEFAULT_PATH . "/ARCusers/");
$json_ary = json_decode($json, true);
foreach ($json_ary as $id => $val) {
if ($val['email'] == $_POST['email']) {
echo "<br>";
echo $val['email'];
echo "<br>";
echo $_POST['email'];
return;
} else {
echo "Your email is incorrect";
}
}
}
if (isset($_POST['postTarget'])) {
$json = $firebase->get(DEFAULT_PATH . "/ARCusers/");
$json_ary = json_decode($json, true);
foreach ($json_ary as $id => $val) {
if ($val['email'] == $_POST['email']) {
echo "<br>";
echo $val['email'];
echo "<br>";
echo $_POST['email'];
continue;
} else {
echo "Your email is incorrect";
}
}
}