in reply to Saving CGI state to mySQL

The easiest way to do it in a few lines is this:

use CGI; my $q = new CGI; # to save object to a database as a single string my $string = $q->query_string(); save_to_db($string); # to retrieve object just get the string back my $string = get_from_db(); # and use it to initinalise a new CGI object my $reconstituted_q = new CGI($string);

This works because the query_string() method generates a query string equivalent to your object data and you can ititialise a CGI object fron a query string like $q = new CGI( "foo=bar&baz=spaz" )

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print