Forum Moderators: coopster
If I remove the is_numeric then it works fine, but I need it to check if the entry is a number.
if (is_numeric(!empty($_REQUEST['pf_zipcode']))){
$pf_zipcode = (trim(stripslashes($_REQUEST['pf_zipcode'])));
} else {
$pf_zipcode = NULL;
echo "<p>Required field: Enter your 5 digit zipcode</p>";
}
Thank you in advance.