in reply to CGI form help with buttons

Hi Steve,

It sounds like what you are trying to build is a website content management system — right? (To update articles/FAQs, images etc.) If that's the case and you're new to Perl you may want to look at Melody.

However, if you need a broader form solution to edit various file formats you can take a look at CGI::FormBuilder which has been around for a while and has lots of tutorials available.

Also, take a look at CGI 101. The first 5 chapters are available online and will help you a lot without even having to buy the book.

Good luck! Luis


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

Replies are listed 'Best First'.
Re^2: CGI form help with buttons
by SteveVsPerl (Initiate) on Jul 28, 2011 at 18:30 UTC

    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. =)

      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