Posted by SquishedOrange on 12/07/06 17:30
function check_zip($Zip) { if(preg_match("/^[0-9]+$/ ",$Zip)) return TRUE; else return FALSE; } Also: if(true == false){ echo("php is broken"); } Note "==" instead of "=". I reccomend reading this: http://uk2.php.net/manual/en/language.operators.php Hope this helps! William
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming