Re: batch process all variables
| From: | David Robley | Date: | Thu, 02 Nov 2000 04:11:43 +0000 |
| Subject: | Re: batch process all variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23307@lists.php.net to get a copy of this message | ||
On Thu, 02 Nov 2000, Justin French wrote:
> hi,
>
> i have a huge form which i need to do certain security and formating
> things to the variables supplied by the form.
>
> anyway simple way i can batch process a huge list of variables if i know them?
>
> eg:
> List of vars i wish to process:
> $a
> $b
> $c
> $d
> $e
>
> List of things I wish to do:
> ereg_replace( "_", " ", $all_the_vars_i_listed_above );
> substr ($all_the_vars_i_listed_above, 0, 4000);
> strip_tags($all_the_vars_i_listed_above);
>
>
> OR alternatively, can I process ALL VARS THAT PHP KNOWS OF, rather than
> a list?
>
>
> help much appreciated, this is a big job...
Probably looping through the PHP_POST_VARS array might be the way to go?
Assuming you are using the POST method.
--
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