Re: Is this a bug ?
| From: | Sébastien ROZIER | Date: | Mon, 05 Feb 2001 15:32:00 +0000 |
| Subject: | Re: Is this a bug ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38251@lists.php.net to get a copy of this message | ||
OK sorry, I did put the "$", and adding = array() is still not working....
Thanx for any help
Steve Werby wrote:
"Sébastien ROZIER" <srozier@groupe2mil1.com> wrote:when I use this syntax: champs[0] is a string, which is the name of an HTML form variable. class test {When initiating a variable you need to prefix it with "$". So the line above should be: var $champs; If it's an array you may want to initiate it like: var $champs = array(); I don't have the time to analyze your code in full right now, but hopefully this will get you started. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/var champs;