Re: [PHP] input processor function

2001-01-10 Thread Joe Stump
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

[PHP] input processor function

2001-01-10 Thread Jon Rosenberg
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