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 <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
> -------------------------
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to