Posted by Jerim79 on 12/07/06 17:38
SquishedOrange wrote:
> 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++;
> }
>
>
>
> :)
Shortly after posting this I was able to find empty. It works like a
charm. Thanks.
[Back to original message]
|