hey,
why did you put the $inValidFields = array();
if in the class object i did
return $this->$ErrorMSG;
and had a line in the foreach loop
a$= $inValidFields->checkFields($Field,$Value);
would this have worked?
i just need to get back the errors so that i can use them in the included file?
how to acces class variables
Moderator: General Moderators
- kendall
- Forum Regular
- Posts: 852
- Joined: Tue Jul 30, 2002 10:21 am
- Location: Trinidad, West Indies
- Contact:
Accessing class variables
Hey,
Y did he put $inValidFields = array();?
if i did $ErrorMSG = array();
and returned the $ErrorMSG;
and have $a=inValidFields->checkFields();
in the foreach statement
would i not get the same result?
Y did he put $inValidFields = array();?
if i did $ErrorMSG = array();
and returned the $ErrorMSG;
and have $a=inValidFields->checkFields();
in the foreach statement
would i not get the same result?
I put that $inValidFields= array(); in my verison to make sure that the array was empty before starting the loop.
I hadn't noticed that your Field class uses ErrorMSG as an array already. I think you can do something like what you mention in your recent post, but there are a few logic errors that I think would have to be cleaned up.
I hadn't noticed that your Field class uses ErrorMSG as an array already. I think you can do something like what you mention in your recent post, but there are a few logic errors that I think would have to be cleaned up.