Re: [PHP] form cleaning class

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 10:39 pm, nihilism machine wrote: > $UserInput = strip_tags($text, $allowedtags); $text is not defined, so it's blank, so now $UserInput is blank... This also tells me that you aren't using E_ALL for development, which is a BAD IDEA... -- Some people have

Re: [PHP] form cleaning class

2008-01-22 Thread Eric Butera
On Jan 21, 2008 11:39 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > now my debug shows that with the following code, all of the > $_POST['whatever'] values are blank. > > > class forms { > > var $UserInput; > > // Forms to variables > function forms() { >

Re: [PHP] form cleaning class

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 23:39 -0500, nihilism machine wrote: > now my debug shows that with the following code, all of the > $_POST['whatever'] values are blank. > > > class forms { > > var $UserInput; > > // Forms to variables > function forms() { > if (c

[PHP] form cleaning class

2008-01-21 Thread nihilism machine
now my debug shows that with the following code, all of the $_POST['whatever'] values are blank. class forms { var $UserInput; // Forms to variables function forms() { if (count($_POST) > 0) { foreach($_POST as $curPostK