This is how I usually do it:
Then you have an array of values in $f
then just do :
while(list($key,$val) = each($f))
{
$$key = strip_tags($val);
}
Which will then create a variable $firstname and put a strip_tags of $val into
it (leaving your original $f array intact for future use)
--Joe
I want to process information submitted by a form, but I want to clean up
the info before I use it. I have about 40 form fields, of several field
types. If I only had a few form fields, I would do ths manually, but since
I have so many my code will be much neater to do it with a function. I wa
2 matches
Mail list logo