Re: Form Validating Class (OOP misunderstandings...)
| From: | Nicholas Wieland | Date: | Tue, 21 Jan 2003 15:20:12 +0000 |
| Subject: | Re: Form Validating Class (OOP misunderstandings...) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132458@lists.php.net to get a copy of this message | ||
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 formating while I checked the code. Try this to see if it works as you expected it to.
snip, it's perfect >Yes, it works. I misunderstood the visibility of $HTTP_POST_VARS. Thank you Joseph ! I really appreciate your help :) I've read the paper from OWASP and now I'm a little paranoid about form validating and user input... does someone have other suggestions about improving the class ? TIA, Nicholas