in reply to Re: redirect back to where you were
in thread redirect back to where you were
I put $ENV{'HTTP_REFERER'} into a hidden form field inside my dynamically generated form.
Now you are free to redirect them in the final, form processing, script to CGI::redirect($input{'backpage'}).<form> --------- stuff ---- <input type="hidden" name="backpage" value="$ENV{'HTTP_REFERER'}"> <input type="submit"> </form>
(Actually, I'm not so sure what CGI.pm puts it's input into, because I don't use it. But you get my meaning.)
oakbox
"If what I'm saying doesn't make sense, that's because sense cannot be made, it's something that must be sensed"-J.S. Hall
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(pmas) Re: redirect back to where you were
by pmas (Hermit) on Jul 25, 2001 at 17:30 UTC |