You guys are outstanding.

Thanks for your help!

Matt


-----Original Message-----
From: Sam Tregar [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 3:06 PM
To: Matt Myhre
Cc: [email protected]
Subject: Re: [cgiapp] passing perl variables

On Fri, 11 Feb 2005, Matt Myhre wrote:

> Is there a way to pass the values (i.e. in a hash) from mode 2 to mode 3
> without creating form fields for each one?

Sessions will work, but if you have no other need for session data
then they're a pretty heavy solution.  An easier alternative is to
just encode the data.  For example:

  use MIME::Base64;
  use Storable;

  # in mode2, encode the data
  $template->param(data => encode_bas64(freeze(\%hash)));

  # in mode3, decode the data
  $hash_ref = thaw(decode_base64($q->param('data')));

-sam

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to