Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Nicholas Wieland
On 2003.01.21 15:21 Rich Gray wrote: PHP does not yet support private methods ... your problem with getValue() is most probably because register_globals is off in your php.ini try substituting $_POST[] for $HTTP_POST_VARS[] and it may start to work... Sorry... I forgot to mention that I use PhP

RE: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread @ Nilaab
Nicholas, I think I know where you found this code. I have the same code, except I modified it a little to work for me. You may need to change it for your needs. When I first used it, it didn't work. I had to modify it to make it work. My code is usually kind of sloppy, but maybe you would get bet

Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Nicholas Wieland
On 2003.01.21 15:42 Joseph W. Goff wrote: For the most part I found two errors The first was a scope problem. $HTTP_*_VARS hashes are not accessible inside functions unless you source them in. i.e. global The other was an extra line in an if statement that did not contain braces. I did a little

Re: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Joseph W. Goff
For the most part I found two errors The first was a scope problem. $HTTP_*_VARS hashes are not accessible inside functions unless you source them in. i.e. global The other was an extra line in an if statement that did not contain braces. I did a little formating while I checked the code. Try th

RE: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Rich Gray
PHP does not yet support private methods ... your problem with getValue() is most probably because register_globals is off in your php.ini try substituting $_POST[] for $HTTP_POST_VARS[] and it may start to work... HTH Rich -Original Message- From: Nicholas Wieland [mailto:[EMAIL PROTECTED