Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI.Scriptname variable

Status
Not open for further replies.

cl8855

Programmer
Nov 28, 2000
47
US
I am using the CGI.SCRIPTNAME variable to pull the name of the page I am on, but it doesn't grab anything past the title of the page (i.e. no parameters - if page is blah.cfm?test=1 - it just pulls blah.cfm.)

Is there a way to grab the full address bar including params?
thanks
 
The parameters are passed in the in a has call the %ENV hash.

The CGI.pm module can assist you in getting these variables


This little script should illustrate well enough. POST a HTML form to this script.
use CGI;

my $q = new CGI;
my $parameters = $q->Vars;
print $q->header;
while (my($key,$varialbe) = each %$parameters ) {
print &quot;<br>$key=> $varialbe\n&quot;;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top