You can get the arguments though %ARGS.
The <%args> section is good for placing arguments
that are either required, or have a default value.

Check the developers manual at
http://www.masonhq.com/ or pick up a copy of the mason book
http://www.masonbook.com/

Doug Dawson wrote:

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.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to