The why is not related to the fact that 2 forms should not have the
same ID but I'll clarify.

I'm creating a web site.
On the top right corner there will be a login box. This login box
allows loin via ajax from and always sits the no matter what the
website displays.
When the user logs in it says "Hello USER" instead of the login box.
You can see it in may web sites on the web.

Now the can ask to reset his password in which case the website now
shows 2 forms:
1. the one on the top right corner. login form.
2. in the middle of the screen a form to send the user name of the
user who forgot his password. regular POST form.

Both forms go to the same controller "Users" one to login and the
other to reset the password.

You may say that when the reset password form appears the login box
should not, but I think its not that important and certainly not bad
design case.

Now that we have this covered.
-----------------
Back to 2 forms with he same ID?


On Jun 19, 3:45 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 6/19/07, Ita <[EMAIL PROTECTED]> wrote:
>
>
>
> > The problem is that when I have 2 forms in the same page they both get
> > the same ID.
> > And when I submit one form via get (in my example) I also get an empty
> > field from another from.
>
> Perhaps you can clarify this for me:  why do you have two forms on the
> same page that update the same model?  Sounds like a poorly-thought
> out design.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to