I may have answered my own question, but I thought I'd check with you
all.

The code below works. Is this the right way to do it?

<%args>
$TestField => undef
</%args>
.
.
.
<%perl>
print $TestField;
</%perl>

Doug Dawson wrote:
> 
> I'm trying to access variables POST'ed to a page on my Mason server. I'm
> relatively new to Mason, so I need some help here.
> 
> Below is the snippet I'm using to display a POST'ed varible. It's not
> really a Mason way, but more of a CGI way. It doesn't work, though.
> (That probably doesn't surpise some of you!)
> 
> How do I access POST varibles with perl blocks in a HTML page?
> 
> <%perl>
> use CGI;
> my $query = new CGI;
> </%perl>
> .
> .
> .
> <td align="center">Test field: <%perl>print
> $query->param('TestField');</%perl></td>
> 
> --
> Doug Dawson
> Application Developer
> Physicians Mutual Insurance Company
> (402) 930-2432
> 
> There are 10 types of people in the world. Those who understand binary
> and those who don't.
> 
> ____________________________________________________________
> This message and any attachments are confidential, may contain privileged 
> information, and are intended solely for the recipient named above.  If you 
> are not the intended recipient, or a person responsible for delivery to the 
> named recipient, you are notified that any review, distribution, 
> dissemination or copying is prohibited.  If you have received this message in 
> error, you should notify the sender by return email and delete the message 
> from your computer system.

-- 
Doug Dawson
Application Developer
Physicians Mutual Insurance Company
(402) 930-2432

There are 10 types of people in the world. Those who understand binary
and those who don't.



____________________________________________________________
This message and any attachments are confidential, may contain privileged 
information, and are intended solely for the recipient named above.  If you are 
not the intended recipient, or a person responsible for delivery to the named 
recipient, you are notified that any review, distribution, dissemination or 
copying is prohibited.  If you have received this message in error, you should 
notify the sender by return email and delete the message from your computer 
system.
begin:vcard 
n:Dawson;Doug
tel;work:402.930.2432
x-mozilla-html:FALSE
url:http://www.physiciansmutual.com
org:;ETG
adr:;;2600 Dodge St.;Omaha;NE;68131;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Programmer
fn:Doug Dawson
end:vcard

Reply via email to