in reply to Re: CGI form help with buttons
in thread CGI form help with buttons

Actually what I'm making is a site users and use to modify "watch-lists." On the first page I prompt them with a drop-down-list of the watch-lists from a specified directory. The user either selects one and clicks an "open" button or clicks a "new" button to start a new one. The only thing in the file is a list of email addresses and a list of tags being "watched."

At first I had a submit button that opened the selected file. But Now that I'm trying to add a second button to create a new one I'm at a loss.

Melody isn't quite what I'm looking for, thanks though. I've already read the CGI101 it was very helpful. Formbuilder does look like it will do the trick. I look forward to rewriting my 200 lines of code. =)

Replies are listed 'Best First'.
Re^3: CGI form help with buttons
by davido (Cardinal) on Jul 28, 2011 at 22:24 UTC

    Before you start a rewrite, and if you are planning a rewrite, consider the decade we're in and what tools are available. While it's still used, CGI is an old technology. It has served the Internet well, was as ubiquitous as hydrogen in the early days, and is still maintained and nowadays but it's past its prime and there are more modern tools that allow you to develop with less effort.

    Take on a small project with Mojolicious::Lite, and thank yourself for arriving at sanity later. For bigger projects, Mojolicious, Catalyst, Dancer, etc.

    There will be a learning curve getting used to thinking in terms of Model/View/Controller, but once you get past the initial investment in learning you will be amazed at how much easier things have become.


    Dave

      What other knowledge is assumed before using a Mojolicious or Dancer? I ask this as much for myself as for Steve. I know that these tools abstract a lot of what CGI, mod_perl or FCGI do but when I look at the tutorial listing there's honestly a few things... Ok more than a few things on there that I'm either not familiar with or don't know very well. What would be a good way to approach a Mojolicious assuming little to no previous experience building web applications?


      "...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote