Re: mailform loop

From: Date: Wed, 20 Jun 2001 17:06:31 +0000
Subject: Re: mailform loop
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-54570@lists.php.net to get a copy of this message
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 <wilbert@pdd.nl> To: <php-general@lists.php.net> Sent: Wednesday, June 20, 2001 4:51 AM Subject: [PHP] mailform loop > 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. > > Or should I make use of a standard good mailform script? and if so, does > anyone know such a good script? > > > wilbert > > ------------------------- > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel 070 4450855 > fax 070 4450852 > http://www.pdd.nl > info@pdd.nl > ------------------------- >

« previous php.general (#54570) next »