Re: mailform loop

From: Date: Wed, 20 Jun 2001 14:26:23 +0000
Subject: Re: mailform loop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54513@lists.php.net to get a copy of this message
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. > > Or should I make use of a standard good mailform script? and if so, does > anyone know such a good script? > > > wilbert > http://open.appideas.com/phpMailForm/ If you need to use addslashes or htmlspecialchars, you'll need to add: $val = addslashes($val); $val = htmlspecialchars($val); You may also need to perform these functions on $key, depending on your needs. If you want to put the entire message into the DB, you can insert $Message at the end of the script or individual values can be inerted using the $key = $val pairs. Have fun... Christopher Ostmo a.k.a. tech@AppIdeas.com AppIdeas.com Meeting cutting edge dynamic web site needs For a good time, http://www.AppIdeas.com/

« previous php.general (#54513) next »