in reply to Obtaining requesting form's URL?

You should be able to use the environmnet variable HTTP_REFERER.

if($ENV{HTTP_REFERER} eq 'http://abc/searchForm2.cgi'){ # Do whatever }

- Tom

Replies are listed 'Best First'.
Re: Obtaining requesting form's URL?
by b10m (Vicar) on Mar 22, 2004 at 21:11 UTC

    As often posted, referers aren't too reliable (I for one turned "Send Referrer" off in my browser).

    Another solution (not too reliable neither) could be to add a hidden field in the form with the URL, or script name. Or analyze your webbrowser's access log (may be overkill, but probably works best).


    All code is usually tested, but rarely trusted.