in reply to Re: Problem with accessing POST data through Apache::Request
in thread Problem with accessing POST data through Apache::Request

I think instance is a decent fix but it is necessary because of the mixing of Apache::Request and CGI. Any interesting test would be to swap the these two lines:

my $page = new CGI; my $test=$apr->param('school');
If you put the $apr->param request before CGI, then it should work (since CGI would not have had the chance to consume the POST). But ideally, I wouldn't mix Apache::Request with CGI.

-derby

Replies are listed 'Best First'.
Re^3: Problem with accessing POST data through Apache::Request
by Khen1950fx (Canon) on Aug 14, 2006 at 12:33 UTC
    Thanks for the input, Derby. Putting the $apr->param request before CGI was a great idea!