# Simple Mason Question (maybe): Arguments

All,

This is really a mason question I believe, but I haven’t yet been
able to work it out… even with referring to the mason docs.

I have a very short test RT mason page, below is the code:
<& /Elements/Header, Title => " Test Page " &>

% if (\$ARGS{‘Queue’})
% {
Queue: <? \$ARGS{'Queue'} ?>
% } else {
No Queue
%}

<& /Elements/Footer &>

I am trying to grab arguments from a POST or GET. If I include
"?Queue=VALUE" on the URL (http://…/NoAuth/test.html?Queue=2)
the if tests positive for the Queue argument but then displays
no value for the argument itself.

Is there something simple I’m missing?

Any help would be appreciated.

Thanks in advance (and sorry to be a bother!),

Matt Disney

how about <%\$ARGS{‘Queue’}%> ? ;)On Mon, Sep 17, 2001 at 05:11:06PM -0500, Matt Disney wrote:

All,

This is really a mason question I believe, but I haven’t yet been
able to work it out… even with referring to the mason docs.

I have a very short test RT mason page, below is the code:
#######
<& /Elements/Header, Title => " Test Page " &>

% if (\$ARGS{‘Queue’})
% {
Queue: <? \$ARGS{'Queue'} ?>
% } else {
No Queue
%}

<& /Elements/Footer &>
########

I am trying to grab arguments from a POST or GET. If I include
"?Queue=VALUE" on the URL (http://…/NoAuth/test.html?Queue=2)
the if tests positive for the Queue argument but then displays
no value for the argument itself.

Is there something simple I’m missing?

Any help would be appreciated.

Thanks in advance (and sorry to be a bother!),

Matt Disney

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.