Four digit postal code validation for certain countries
After searching the forums, I came across the above code which I placed in the wavt_scripts_php.php
Unfortunately I am trying to figure the next step as the confirm.php shows the following
Warning: Missing argument 8 for WAValidateZC(), called in /Applications/MAMP/htdocs/NBA/confirm.php on line 30 and defined in /Applications/MAMP/htdocs/NBA/webassist/form_validations/wavt_scripts_php.php on line 897
Warning: Missing argument 8 for WAValidateZC(), called in /Applications/MAMP/htdocs/NBA/confirm.php on line 40 and defined in /Applications/MAMP/htdocs/NBA/webassist/form_validations/wavt_scripts_php.php on line 897
Warning: Missing argument 8 for WAValidateZC(), called in /Applications/MAMP/htdocs/NBA/confirm.php on line 42 and defined in /Applications/MAMP/htdocs/NBA/webassist/form_validations/wavt_scripts_php.php on line 897
the codes on line 30, line 40, line 42 are
$WAFV_Errors .= WAValidateZC(((isset($_POST["postcode"]))?$_POST["postcode"]:"") . "",true,true,true,true,true,9);
and the code on line 897 is
function WAValidateZC($value,$us5,$us9,$can6,$uk,$anz,$required,$number) {
the $anz would represent a four digit postal code correct
Client received an order from the Netherlands which the customer could not apply the postal code.
Any advice would be appreciated .