You might try something like this.
while(list($key,$val) = each($HTTP_POST_VARS)) {
$$key = addslashes($val);
}
Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084
http://www.datadrivendesign.com
http://www.rossidesigns.net
- Original Message -
From: Wilbert Enserink <[EMAI
Well, if you named all the fields in the HTML as follows you could use an
array_walk function to do that.
Then you could array_walk through $mailForm and addslashes/htmlspecialchars
to it.
Chris "TunkeyMicket" Watford
TunkeyMicket Productions
www.tunkeymicket.c
Wilbert Enserink pressed the little lettered thingies in this order...
> Hi all,
>
>
> does anybody know if it is possible to loop through all the fields in a
> mailform. I want to perform the addslashes function and htmlspecialchars
> function to each entered value so i can put it in my db.
3 matches
Mail list logo