in reply to CGI/Mod Perl Application Design philosophy - which way do we go?

In my CGI/Mod Perl applications I use an action variable to direct my program to do what needs to be done. i.e.
A few more things:
  • How come the submit button(s) of the form isn't enough to decide what to donext? That, in conjunction with HTTP_REFERER are enough in most cases. It keeps your dispatch table down to do dimensions. One dimension is the value of the action and the other is the value of the REFERER.
  • I wonder why you had to present such an unrealistic example in your initial post. Can you supply us with a real-word example of your case-based form dispatch?
    • Comment on Re: CGI/Mod Perl Application Design philosophy - which way do we go?
    • Download Code
  • Replies are listed 'Best First'.
    Re: Re: CGI/Mod Perl Application Design philosophy - which way do we go?
    by DrZaius (Monk) on Jun 01, 2001 at 19:01 UTC
      What if you have multiple forms posting to the same cgi script? Using the referrer as a dimension seems like a bad idea.

      Does it not also increase debugging time? For my scripts, I can type in the params I want to test with right into my browsers url bar. Using referrer requires you to always go through the proper steps.

      Also, what happens when your site layout changes?