in reply to Passing Variables in CGI
Now suppose this script is called tst.pl and is located in you /cgi-bin/ directory.#!/usr/bin/perl -w use CGI qw(:standard); use strict; my $query = new CGI; my $name = $query->param('name'); my $loc = $query->param('loc'); print $query->header("text/plain"); print "$name is from $loc\n";
http://www.host.com/cgi-bin/tst.pl?name=Joe&loc=The+Netherlands
perl tst.pl name=Joe&loc=The+Netherlands
|
|---|