Still think I'm missing something here. I have this:
if ($x2 > 1) {
$mac2 = $vendormac . $macsuffix2;
$mac2Stripped = str_replace(":", "", $vendormac . $macsuffix2);
$macArray[] = $mac2Stripped;
if (!preg_match('/^[0-9A-Fa-f]{6,6}$/i', $macEreg2)) {$errors[] = "<b>You screwed up 2.</b>";}
if (in_array($mac2Stripped, $macArray), true)) {echo "Duplicate MAC\n";} else {echo "NO DUPES FOUND";}
}
Still no worky.
Where am I going wrong? In production, I would only want to add the error to the $errors[] array like the preg_match line above it.