Title: RE: Passing a hash to a cgi outside a form?

Try:

print "Location: test2.cgi?" . join '&', map {"list=$_"} @$list;

-Robert Jenks <[EMAIL PROTECTED]>


-----Original Message-----
From: perl [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 5:22 AM
To: apache
Subject: Passing a hash to a cgi outside a form?


Hi there!

Sorry for this question which might sound easy to you, but, does anyone know :
How can a CGI pass and receive a hash without a form?

Please have a look at the following simple scripts :

This is test.cgi
-----------------------
#!/usr/bin/perl
use CGI;

$list->{'value1'} = 'apple';
$list->{'value2'} = 'fruit';

print "Location: test2.cgi?list=$list \n\n";
----------------------
[snip]

Reply via email to