On Mar 28, 2009, at 8:04 PM, Paddy Joy wrote:

>
> I have a form that can be called from multiple places. What's the best
> way to redirect back to the original page after the form has been
> saved.

I think the standard way to do this is to include a hidden form  
element (usually called "next") the value of which is set to the  
current page (or wherever you want to send the user). This value  
sticks during form processing, and is used as a redirect value  
afterwards. Many built-in or third-party forms are already set up to  
take advantage of a "next" (or something similar), and it's easy  
enough to do for your own forms.

HTH,
Eric


>
> Do I need to extract the HTTP referrer or is there a better way?
>
> Paddy
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to