Re: [PHP] mailform loop

2001-06-20 Thread Data Driven Design
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

Re: [PHP] mailform loop

2001-06-20 Thread Chris \"TunkeyMicket\" Watford
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

Re: [PHP] mailform loop

2001-06-20 Thread Christopher Ostmo
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.