For now what I found is I put a javascript redirect, since header('Location..') php function simply loads the content which is then returned in the div element. I use javascript function location.href, which seems to be a viable alternative for now. It does require javascript, but hey the form plugin is javascript! Any better idea? And how do you decide not to show the form once it is successful? Isn't it the normal "behavior" of forms? Unless you delete the form object. Maybe I am missing the point of this plugin!
Thanks Maxime On Mar 9, 6:22 pm, "Maxime C. Dumas" <[EMAIL PROTECTED]> wrote: > Hi all, I discovered today this amazing form plugin, and started using > it for my existing forms. > The only problem is when I was submitting a form, if it was successful > on certain forms I would use a php redirect (header function) to > redirect the user to a page. With the plugin, I can only write to a > target (ie DOM element). How can I write to the DOM element when there > is an error, and redirect to a specific page when successful? > Thanks! > Maxime