Re: check all values in HTTP_GET_VARS
| From: | David Robley | Date: | Mon, 19 Feb 2001 01:40:14 +0000 |
| Subject: | Re: check all values in HTTP_GET_VARS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40489@lists.php.net to get a copy of this message | ||
On Mon, 19 Feb 2001 11:54, Matthew Delmarter wrote:
> I want to check to see if all vars in HTTP_GET_VARS array are empty.
> How can I do this?
>
> The code would work like this:
>
> if(all HTTP_GET_VARS empty):
> do this;
> else:
> echo this;
> endif;
>
>
>
>
> Regards,
>
> Matthew Delmarter
Seeing it is an array, you could use sizeof to determine the number of
elements and go from there.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA