Well, if you named all the fields in the HTML as follows you could use an
array_walk function to do that.

<input name=mailForm[] type=text value=hi>

Then you could array_walk through $mailForm and addslashes/htmlspecialchars
to it.

Chris "TunkeyMicket" Watford
--------------------------------
TunkeyMicket Productions
www.tunkeymicket.com

----- 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]
> -------------------------

Reply via email to