Something like this should help:
if( is_array($preferred_location) ) {
#your code goes here.
}
In article <9csden$8qu$[EMAIL PROTECTED]> you write:
>I need to check that a form entry defined as an array contains a value
>before initiating the foreach code in my script.
>
>I have my form
]]
> Sent: Thursday, May 03, 2001 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] using an array with form list values
>
>
> I need to check that a form entry defined as an array contains a value
> before initiating the foreach code in my script.
>
> I have
I need to check that a form entry defined as an array contains a value
before initiating the foreach code in my script.
I have my form field defined in my form as:
Bermuda
California
Caribbean
Caroli
3 matches
Mail list logo