Code: Select all
if($zip!=""){
if(preg_match('/^\d{5}(-\d{4})?$/',$zip)){
break 2;
} else {
$errors=1;
$error.="<li>Please enter a valid <abbr>us</abbr> ZIP code (5 digit ZIP or ZIP + 4)</li>";
}
}
I've worked around this withCannot break/continue 1 level in path/to/file.php on line xyz
Code: Select all
if($zip!=""){
if(preg_match('/^\d{5}(-\d{4})?$/',$zip)){
$errors=$errors;
} else {
$errors=1;
$error.="<li>Please enter a valid <abbr>us</abbr> ZIP code (5 digit ZIP or ZIP + 4)</li>";
}
}Thanks,
--cz