Re: Info needed...
From: Wiggins D Anconia (wiggins_at_danconia.org)
Date: 04/29/04
- Next message: Durai: "To include another file in perl program"
- Previous message: Randy W. Sims: "Re: Perldoc on Win98"
- Maybe in reply to: Cristi Ocolisan: "Info needed..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Apr 2004 11:02:52 -0600 To: "Cristi Ocolisan" <cristi@wiq.ro>, Perl Beginners <beginners@perl.org>
> On Apr 29, 2004, at 9:36 AM, Cristi Ocolisan wrote:
>
> > I already used hidden fields, but because I couldn't figure out how to
> > write
> > a single script, I wrote dozens of different small scripts and sent
> > that
> > hidden field from one script to another.
> >
> > I'm tired of that. I want to write a single script that handles several
> > pages...
>
> my $mode = $query->param('mode');
>
> if ($mode eq 'add') { add_product(); }
> elsif ($mode eq 'edit') { edit_product(); }
>
You may want to check out the CGI::Application module from CPAN.
Personally I haven't used it, but it seems useful for building such scripts,
http://search.cpan.org/~markstos/CGI-Application-3.22/lib/CGI/Application.pm
- Next message: Durai: "To include another file in perl program"
- Previous message: Randy W. Sims: "Re: Perldoc on Win98"
- Maybe in reply to: Cristi Ocolisan: "Info needed..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|