thil has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm having a problem with accessing POST data through Apache::Request object.
here is my code snippet which accesses the request data.
use Apache::Request; use CGI; my $apr= Apache::Request->new(shift); my $page = new CGI; my $test=$apr->param('school'); print $page->header(); print("Post Data " . $test);
HTML content
I can't access the POST data using $apr object. But I can access the same POST data if I replace $apr with $page.<html> <head></head> <body> <form method=Post action='test.pl' > <input type=text name='school' value='test'> <input type=submit value='Ok'> </form> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with accessing POST data through Apache::Request
by Khen1950fx (Canon) on Aug 14, 2006 at 08:56 UTC | |
by derby (Abbot) on Aug 14, 2006 at 12:17 UTC | |
by Khen1950fx (Canon) on Aug 14, 2006 at 12:33 UTC | |
by thil (Sexton) on Aug 14, 2006 at 12:36 UTC | |
by derby (Abbot) on Aug 14, 2006 at 12:47 UTC | |
by thil (Sexton) on Aug 14, 2006 at 13:03 UTC |