in reply to How to pass a parameter between cgi's?
Try either of the following approaches:
#!/usr/local/bin/perl use CGI qw(:all); print header; print "in cgi2.cgi<BR>"; $i = param('i'); print $i;
#!/usr/local/bin/perl use CGI; $query = CGI->new; print $query->header; print "in cgi2.cgi<BR>"; $i = $query->param('i'); print $i;
Update: $CGI -> CGI in the second code example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to pass a parameter between cgi's?
by JaredF (Initiate) on Oct 24, 2005 at 02:28 UTC |