Not sure if I'm misunderstanding, but I know that foreach() will do this. -----Original Message----- From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:58 AM To: Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] preg_match array question
The problem is, that I have multiple fields and what I am trying to do is check each field to make sure I get the data that I need and not some crap, like letters in a number field or a <script> tag in a field. Things of this sort. The foreach loop wont work for me in this instance because Im checking for proper input. I can write multiple elseif statements to check each field but alas, this is not optimal. I may go ahead and write this to get it done and then go back and put it to the write board.... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php