dnsurf101 has asked for the wisdom of the Perl Monks concerning the following question:

I'm new to CGI scripts, Perl scripts, and Forms. Can I link any form to the scripts or is there a special way to set them up... Please help... Also does anyone know how to make a form that has required questions without using FrontPage extensions?

Replies are listed 'Best First'.
RE: CGI Form Mailing
by Anonymous Monk on Feb 26, 2000 at 16:05 UTC
    all you have to do is set the ACTION attribute of the FORM in your HTML code to tell the browser where to post the form contents..... example: <FORM ACTION="http://server.com/cgi/blah.pl" METHOD="POST"> will POST the form contents to "blah.pl" then, it is up to you to get the information that's been posted (i highly recomend Deurl.pm by Jenda Krynicky it's on CPAN somewhere... just search for it)
      i cant find any deurl.pm is there any other perl script that works good?
RE: CGI Form Mailing (2)
by howard40 (Beadle) on Feb 26, 2000 at 16:10 UTC
    that last posting i did had some HTML code (and i wasn't logged in at the time)... here is the example again...
    <FORM ACTION="http://server.com/cgi/blah.pl" METHOD="POST">
    (PS, if you want to make forms with required fields, the easiest and fastest way is to use a bit of javascript)
      While javascript might be the fastest and easiest way to check for required fields, it's not a true way to verify that a required field has been filled in. It's a great way to offload some traffic by making sure that the form is filled out before sending the data across the network, but can be easily gotten around since javascript can be disabled. In order to thoroughly check that fields are filled in, server-side checking has to be done, in addition to any client-side checks.
        thats partially with frontpage extensions right?