Posted by SquishedOrange on 12/07/06 17:34
Untested!!!
$Zip=stripslashes($_POST["Zip"]);
if (empty($Zip)) {
$msg7="Please input a 5 digit zip code)";
$error++;
}
if(!preg_match("/^[0-9]+$/ ",$Zip)){
$msg7="Please input a valid 5 digit zip code. (No letters or special
characters.)";
$error++;
}
:)
Navigation:
[Reply to this message]
|