Hey thanks,
I figured out a way to get rid of the values, i simply put value = ""
in the options array and it works, but thank you for your help. I
will keep your code snippet in mind if something should araise later
on.
On Feb 25, 10:58 am, rtconner <[EMAIL PROTECTED]> wrote:
> If you are putting things into $this->data - yeah that is where cakes
> magic is. Cake has claimed the variable data as it's own.
>
> If you don't like the automagic, then just dont use $this->data. Code
> like that below works very well for me, when I dont want to use the
> automated for filling.
>
> $user = $this->User->read(null, $id);
> $this->set('user', $user);
>
> On Feb 25, 7:41 am, Ithaka <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I'm currently building a App for my work and in the layout we have our
> > login information instead of having a seperate page to do it. The
> > problem i found, and have been trying to fix, is that when i go into
> > some of the pages, like edit the posts section and i am not logged in,
> > cakephp will input the username and password of the user that posted
> > that comment. After looking in the source of the page i see that the
> > form grabs the information from data and inputs it into the fields, so
> > u literally see the values of those fields as the username and
> > password, which isn't that good of a security mesure :P. So yes,
> > before people stop reading and start posting, "Why don't u just have
> > the users log in or block them from editing if they don't have an
> > account?!?!" I know, but that's not the point, i wish to learn the
> > cause as to why my formhelper is generating the username and password
> > for the posted user in the login fields. Thank you in advance, i'll
> > be looking into this more as the day goes on.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---