Re: Info needed...

From: Wiggins D Anconia (wiggins_at_danconia.org)
Date: 04/29/04


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

http://danconia.org



Relevant Pages

  • Re: fp 2003 hiding email address in post under form
    ... Not possible w/ the FP forms handler ... |>that sends mail with an asp or perl script etc e.g., ... |>>> direct email address in the form properties options ... |>>> to create some hidden fields that when concatenated ...
    (microsoft.public.frontpage.client)
  • Re: fp 2003 hiding email address in post under form
    ... Those email encoders don't work on things like hidden fields if you use a form ... email address coded into the script itself, and not as a hidden field in an html ... was another one I found that used ASP to hide the web ...
    (microsoft.public.frontpage.client)
  • Re: receipt of form values by an HTML page
    ... them to the second HTML page, I could go home early and watch the ball ... If you can fiddle your server so that requests for the initial page get redirected to this script then so much the better, because the script that handles Page1 data might have to redisplay page1 with error messages. ... Your new script validates Page1 data when POSTed and either rewrites Page1 if the data has errors or writes page2, with the page1 data in hidden fields, and the page 2 fields in the same form. ...
    (comp.infosystems.www.authoring.html)
  • Re: Accessing server controls using client scripts....
    ... register scripts or hidden fields in the page. ... the Page or from the MasterPage. ... > Have you tried dynamicly generating your script, ... >> As I am using masterpages the control names are prefixed with the control ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Passing Variables or Querystrings?
    ... in hidden fields as Request.ServerVariablesand ... If your script is asp, then it would work just as I mentioned (e.g. include ... the request before your script, and add it to the URL you send). ...
    (microsoft.public.inetserver.asp.general)