Thank you very much for advices, Dave! I think I'll try AJAX - it will
be good practice for me ;)

Cheers,
Nick

Dave J wrote:
> Hey Nick,
>
> You're right about that. I guess you can tackle it either two ways.
>
> 1) Submit the form using AJAX, so if there's any errors, you get them
> back without a page refresh. And on successful login, you could either
> hide the login form and replace it with a 'logged-in' message. Or send
> back a JS command to refresh the page, so the page would reflect the
> new logged-in status
>
> 2) Or use the flash feature of the Session Component/Helper to return
> any errors as soon as the page refreshes. (Just make sure you have
> $session->flash() somewhere in your layout)
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to