Check input against list

From: Date: Tue, 01 Aug 2000 17:16:00 +0000
Subject: Check input against list
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9489@lists.php.net to get a copy of this message
I have a couple input fields that require ISO state and country codes. Is there some way to check that an input string is one of N possibilities, where N is a large-ish number? or do I have to do the ugly, obvious method like if (($ST <> "AK") or ($ST <> "AL")......... barf..) -- www.SpamWhack.com A pre-emptive strike against spam Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 My transistor sings with unintended parasitic the smoke escapes By Jeff Stout

« previous php.general (#9489) next »