Furthermore, Mason has full access to mod_perl which also provides numerous facilities.
On Tue, 2009-08-18 at 09:35 -0500, Michael R Boudreau wrote: > Hi Jochem, > > Mason will make all your form data available in the %ARGS hash, so if you > have a set of buttons like this: > > <input type="submit" name="button1" value="Button 1" /> > <input type="submit" name="button2" value="Button 2" /> > <input type="submit" name="button3" value="Button 3" /> > > then you can test whether any of them was clicked by checking its key in the > %ARGS hash for a true value: > > % if ( $ARGS{button1} ) { > > <p>You pressed button 1</p> > > % } elsif ( $ARGS{button2} ) { > > <p>You pressed button 2</p> > > % } elsif ( $ARGS{button3} ) { > > <p>You pressed button 3</p> > > % } > > > On 8/18/09 8:36 AM, "Jochem Jofel" <mason-u...@live.com> wrote: > > > Hi, I've recently discovered the HTML::Mason software and the book: > > Embedding > > Perl in HTML with Mason. > > I find the Mason prospect promising because of the flexible component > > approach, and I hope to be able to use it for a site that presumably will > > be a > > high traffic site (thus not very well suited for a (fast)CGI approach) but > > one > > crucial thing escapes me. > > I've created a Mason component that displays a HTML form (see: attachment). > > In > > accordance with the suggestion(s) in the book I want to call a perl module > > that handles the request, AFTER the form is submitted. In the perl module to > > call I need FULL access to the query parameters and their value(s). > > Specifically: I want to call a handler module that checks which submit > > button > > has been activated and then executes the necessary code in each (of three) > > case(s). I've not been able to find anything suitable in the book or on the > > internet to do this. Can you please advise me how to achieve this? Or is > > this > > something that can only be done (properly) in a CGI environment? > > Thanks for any useful advise you may have to offer. > > Jochem > > > > > > Express yourself instantly with MSN Messenger! MSN Messenger > > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users