Re: mailform loop
| From: | Chris \"TunkeyMicket\" Watford | Date: | Wed, 20 Jun 2001 13:45:07 +0000 |
| Subject: | Re: mailform loop | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54516@lists.php.net to get a copy of this message | ||
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" <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
> -------------------------