RE: [PHP] preg_match array question
| From: | Ralph | Date: | Fri, 30 May 2003 19:42:00 +0000 |
| Subject: | RE: [PHP] preg_match array question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149594@lists.php.net to get a copy of this message | ||
Not sure if I'm misunderstanding, but I know that foreach() will do
this.
-----Original Message-----
From: Daniel J. Rychlik [mailto:drychlik@tcsconsult.com]
Sent: Friday, May 30, 2003 11:58 AM
To: Ralph; php-general@lists.php.net
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....