You can either store the referrer in the session when you're displaying the
form, or add it as a hidden field.

Hidden field will yeild the best results, Incase the user has two windows
open

On Thu, Feb 5, 2009 at 8:47 AM, fluxusps <[email protected]> wrote:

>
> Hi All,
> In my controller I have an action that will check if $_POST has been
> submitted. If so, proceed with the db input/update.  In not, display the
> form.
>
> I can arrive at this insert/update page from a few different places.
>
> Using the $_SERVER['HTTP_REFERER'] won't work because upon submission the
> referer is always the same controller.
>
> I need to store and redirect to the page previous to arriving at the form.
> I reckon it may have something to do with a pre/post dispatch plugin but I
> can't seem to find any resources for this.
>
> I hope that makes sense.
> Any ideas appreciated.
> --
> View this message in context:
> http://www.nabble.com/redirect-to-referer-after-submit-tp21854008p21854008.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
A.J. Brown
web | http://ajbrown.org
phone | (937) 660-3969

Reply via email to