in reply to Recalling the URL of initiating page
If you're working with a CGI you should get a whole bunch of information sent as environmental variables.
One of them will be SCRIPT_NAME.
Another useful one would be REQUEST_URI.
See what your webserver (apache probably) will send to your script save the following as a CGI script and try calling it:
#!/usr/bin/perl print "Content-type: text/html\n\n"; foreach my $key ( keys %ENV ) { print $key . " " . $ENV{$key} . "<br />\n"; }
|
|---|