Re: Compare Array - GOT IT!

2009-04-30 Thread Brendon Kozlowski
le its saving id, > user id , program_id > > That was all...sorry for the confusion > > Dave   > > > > -Original Message----- > From: Brendon Kozlowski [mailto:brendon...@hotmail.com] > Sent: April-30-09 11:48 AM > To: CakePHP > Subject: Re: Compare Arra

RE: Compare Array - GOT IT!

2009-04-30 Thread Dave Maharaj :: WidePixels.com
ogram_id That was all...sorry for the confusion Dave -Original Message- From: Brendon Kozlowski [mailto:brendon...@hotmail.com] Sent: April-30-09 11:48 AM To: CakePHP Subject: Re: Compare Array - GOT IT! Ah, okay I understand what you mean now. It looks like you're doing this in t

Re: Compare Array - GOT IT!

2009-04-30 Thread Brendon Kozlowski
ony way the form would not save is if someone was > messing with it and submited bad data.(the form is only checkboxes) > > > > -Original Message- > From: Brendon Kozlowski [mailto:brendon...@hotmail.com] > Sent: April-29-09 11:15 PM > To: CakePHP > Subject: Re: Co

RE: Compare Array - GOT IT!

2009-04-29 Thread Dave Maharaj :: WidePixels.com
messing with it and submited bad data.(the form is only checkboxes) -Original Message- From: Brendon Kozlowski [mailto:brendon...@hotmail.com] Sent: April-29-09 11:15 PM To: CakePHP Subject: Re: Compare Array - GOT IT! I don't believe this is necessary in the first place. Why are you g

Re: Compare Array - GOT IT!

2009-04-29 Thread Brendon Kozlowski
I don't believe this is necessary in the first place. Why are you giving someone the ability to edit the form that shouldn't be? That's the first issue I see. Secondly, why are you passing values to be saved if you don't want them overwritten? That's the 2nd issue. Thirdly, why are you even re

RE: Compare Array - GOT IT!

2009-04-29 Thread Dave Maharaj :: WidePixels.com
I figured it out. //list of possible keys $keys = $this->User->$model_name->find('list', array('fields' => 'id', 'order' => 'id ASC')); debug($keys);