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
turn $value; } } ?> - Original Message - From: "Nicholas Wieland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 8:12 AM Subject: [PHP] Form Validating Class (OOP misunderstandings...) > Hello everybody, > I'm worki

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

2003-01-21 Thread Rich Gray
PROTECTED]] Sent: 21 January 2003 14:13 To: [EMAIL PROTECTED] Subject: [PHP] Form Validating Class (OOP misunderstandings...) Hello everybody, I'm working on a class but having a lot of problems... probably my understanding of PhP-OOP is not so good ... Here's the class: I found it on the we

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

2003-01-21 Thread Nicholas Wieland
Hello everybody, I'm working on a class but having a lot of problems... probably my understanding of PhP-OOP is not so good ... Here's the class: I found it on the web and I've tried to personalize it to fit my needs... class FormV { var $errorList; function FormV() { $this->reset_erro