You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Da...@ssmhc.com on 2007/02/20 20:58:51 UTC

mod_perl 2 and Forms?

I'll admit that I'm a mod_perl newbie.  I've always just used plain ol' 
CGI scripts in the past.  Obviously I have relied's upon CGI's param() 
method to get form parameters.  Looking around the documentation, I can 
see how to do the equivalent using mod_perl, but nothing with mod_perl 2. 
In fact, many a google search has suggested that this is more or less 
broken in mod_perl 2 and to use CGI.pm instead.  However, before I did 
this, which I consider to be a kludge, I figured it would be best to ask 
the community since I can find nothing about it on the mod_perl 
documentation site.

So here's the basic question.  What method(s) do I use in standard 
mod_perl 2 modules to perform tasks similar to CGI.pm's param() method?

Dan Kelley
Sr. Network Analyst
SSM Health Care, Information Center
(314) 768-5144 / (314) 256-9272


-----------------------------------------
Confidentiality Notice: This email message, including any
attachments, is for the sole use of the intended recipient(s) and
may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Re: mod_perl 2 and Forms?

Posted by Perrin Harkins <ph...@gmail.com>.
On 2/20/07, Dan_Kelley@ssmhc.com <Da...@ssmhc.com> wrote:
> So here's the basic question.  What method(s) do I use in standard mod_perl
> 2 modules to perform tasks similar to CGI.pm's param() method?

CGI.pm works fine and is not a kludge.  If you want something faster
and lighter, Apache2::Request (in the libapreq2 distribution) is it.

- Perrin

Re: mod_perl 2 and Forms?

Posted by Foo JH <jh...@extracktor.com>.
Install libapreq2, which emulates the CGI->param() method. Depending how 
refactored your existing codes are, you may not need to rework much.

Dan_Kelley@ssmhc.com wrote:
>
> I'll admit that I'm a mod_perl newbie.  I've always just used plain 
> ol' CGI scripts in the past.  Obviously I have relied's upon CGI's 
> param() method to get form parameters.  Looking around the 
> documentation, I can see how to do the equivalent using mod_perl, but 
> nothing with mod_perl 2.  In fact, many a google search has suggested 
> that this is more or less broken in mod_perl 2 and to use CGI.pm 
> instead.  However, before I did this, which I consider to be a kludge, 
> I figured it would be best to ask the community since I can find 
> nothing about it on the mod_perl documentation site.
>
> So here's the basic question.  What method(s) do I use in standard 
> mod_perl 2 modules to perform tasks similar to CGI.pm's param() method?
>
> Dan Kelley
> Sr. Network Analyst
> SSM Health Care, Information Center
> (314) 768-5144 / (314) 256-9272
> ------------------------------------------------------------------------
>
> *Confidentiality Notice: This email message, including any 
> attachments, is for the sole use of the intended recipient(s) and may 
> contain confidential and privileged information. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not 
> the intended recipient, please contact the sender by reply email and 
> destroy all copies of the original message. *
>


Re: mod_perl 2 and Forms?

Posted by Jonathan Mangin <jo...@comcast.net>.
See Apache2::Request.

  ----- Original Message ----- 
  From: Dan_Kelley@ssmhc.com 
  To: modperl@perl.apache.org 
  Sent: Tuesday, February 20, 2007 2:58 PM
  Subject: mod_perl 2 and Forms?



  I'll admit that I'm a mod_perl newbie.  I've always just used plain ol' CGI scripts in the past.  Obviously I have relied's upon CGI's param() method to get form parameters.  Looking around the documentation, I can see how to do the equivalent using mod_perl, but nothing with mod_perl 2.  In fact, many a google search has suggested that this is more or less broken in mod_perl 2 and to use CGI.pm instead.  However, before I did this, which I consider to be a kludge, I figured it would be best to ask the community since I can find nothing about it on the mod_perl documentation site. 

  So here's the basic question.  What method(s) do I use in standard mod_perl 2 modules to perform tasks similar to CGI.pm's param() method? 

  Dan Kelley
  Sr. Network Analyst
  SSM Health Care, Information Center
  (314) 768-5144 / (314) 256-9272



------------------------------------------------------------------------------


  Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. 

Re: mod_perl 2 and Forms?

Posted by Frank Wiles <fr...@wiles.org>.
On Tue, 20 Feb 2007 13:58:51 -0600
Dan_Kelley@ssmhc.com wrote:

> I'll admit that I'm a mod_perl newbie.  I've always just used plain
> ol' CGI scripts in the past.  Obviously I have relied's upon CGI's
> param() method to get form parameters.  Looking around the
> documentation, I can see how to do the equivalent using mod_perl, but
> nothing with mod_perl 2. In fact, many a google search has suggested
> that this is more or less broken in mod_perl 2 and to use CGI.pm
> instead. 
 
   This is mostly for the archives, but the "brokenness" those searches
   are referring to is most likely the change in the mod_perl API that
   does allow you to override the values you get from Apache2::Request.

   In MP1 you could change those values, but in MP2 they are
   ( properly IMHO ) read-only. 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------