[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cgiapp] problem with prerun_mode()


Just a quick follow-up.

I changed:

	# print query data
	for my $key ( sort $q->param ) {
		print "$key = " . $q->param( $key ) . "\n";
	}

to

	# print query data
	my %params = $q->Vars;
	for my $key ( sort keys %params ) {
		print "$key = $params{ $key }\n";
	}

in both places in my code (so it will use Vars(), now) without any
effect on the output.

C:\>perl i.pl x=1 y=2 z=3
x = 1
y = 2
z = 3
switched modes
x = 1
y = 2
z = 3
Content-Type: text/html; charset=ISO-8859-1

mode: add

*shrug*

-Brian Cassidy

> -----Original Message-----
> From: Michael Hirmke [mailto:suppressed
> Sent: Tuesday, July 15, 2003 3:08 PM
> To: suppressed
> Subject: [cgiapp] problem with prerun_mode()
> 
> Hi *,
> 
> I tried to find a solution for my problem in the history of the list,
> but didn't get anything.
> When I modify the runmode within cgiapp_prerun using the prerun_mode
> function, it seems that the query object somehow gets destroyed or at
> least doesn't contain the previous params, when entering this new
> runmode function.
> At the beginning of cgiapp_prerun I loop through all the params of the
> CGI object and find them all set to the proper values. At the
beginning
> of the function the new runmode points to, all of my params seem to be
> gone.


http://www.gordano.com - Messaging for educators.

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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.