Re: [Zope] Newbie -- redirect to referring url.
On Sunday 23 December 2001 01:09 pm, you wrote: Thanks, that'll do the trick.... regarding telling people if it happened, I'm trying to tell them if it didn't happen but I'll take your suggestion on board. Regards, Mehmet
I recently did something like this. What I did was, on the form include a hidden input element named referer which held the url of the referring page so that after I was done I could send people back to where they came from. Something like:
<input type="hidden" name="referer" value="<dtml-var "REQUEST['HTTP_REFERER']">">
on the form, and
<a href="&dtml-referer;">Return to where you were</a>
in the action method. You might be able to get it to go there automatically with a <dtml-call "REQUEST.redirect(referer)"> (untested) but it seems (to me) like you might want to tell people that whatever they were trying to do actually happened...
participants (1)
-
MehmetYousouf