Fw: [Perl] HTML::Mason help anyone?

2003-06-09 Thread Issac Goldstand
Forwarded from the Israeli Perl Mongers mailing list:

- Original Message - 
From: Ron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 09, 2003 1:48 PM
Subject: [Perl] HTML::Mason help anyone?


 I have a simple form that looks like so:
 
 form method=GET action=/company/contact_us/handle_info_req.html 
 enctype=text/plain
input type=text name=end_email size=15
input type=submit name=submit value=click
 /form
 
 all HTML files are  processed by Mason using the filesmatch directive 
 in httpd.conf
 
 and my simple handler object simply does:
 
 % foreach (sort %ARGS) {
% $_ %
 % }
 
 The problem is that I only see the values printed when I use the GET 
 option in the form above, when I change GET to POST nothing gets 
 printed... what am I doing wrong? it seams to me that Mason is not 
 seeing any posted data...
 
 Thanks
 Ron.
 
 ___
 Perl mailing list
 [EMAIL PROTECTED]
 http://www.perl.org.il/mailman/listinfo/perl
 


Re: Fw: [Perl] HTML::Mason help anyone?

2003-06-09 Thread Ged Haywood
Hi there,

On Mon, 9 Jun 2003, Issac Goldstand wrote:

 Forwarded from the Israeli Perl Mongers mailing list:
 
 - Original Message - 
 From: Ron [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 09, 2003 1:48 PM
 Subject: [Perl] HTML::Mason help anyone?
 
 
  I have a simple form
[snip]
  The problem is that I only see the values printed when I use the GET 
  option in the form above, when I change GET to POST nothing gets 
  printed... 

POST data can only be read once, if you want to read it again you have
to save it somewhere.  It looks to me like before you try to read it,
it's being read by something else and therefore lost to you.

This question seems to crop up quite a lot (if this is the right answer:)

73,
Ged.