Ohhh great ones, I am trying to learn a little cgi, and have found Ovid's lessons: http://users.easystreet.com/ovid/cgi_course/lesson_four/lesson_four_1.html

I am most curious about this:

#!C:/perl/bin/perl.exe -wT use strict; use CGI qw/:standard/; print header, start_html( "-title" => "Login in Weird Sports"), div( { -align => "center", -style => "color:#000000; font-family: Tahoma, helvetica, + arial;"}, h1( "Login to your account" ), p( "Here you can log in to the Weird Sports mailing list archi +ves. " . "In theory, you will be able to change your user settings. +In reality, " . "however, you can't because this is just an example from a +" . a( { -href => "http://www.easystreet.com/~ovid/cgi_course/" + }, "stupid CGI programming course" ), "." ), start_form( { -action => "login.cgi", -enctype => "application/x-www-form-urlencoded", -method => "post" } ), table( { -bgcolor => "#000000", -border => "0", -cellpadding => "2", -cellspacing => "1", -style => "font: 10pt;" }, Tr( { -style => "background-color:#CCCCCC" }, td( strong( "User Name:" ) ), td( input( { -maxlength => "30", -name => "username", -size => "30", -type => "text"} ) ) # end td ), # end Tr Tr( { -style => "background-color:#CCCCCC"}, td( strong( "Password:" ) ), td( input( { -maxlength => "30", -name => "password", -size => "30", -type => "password"} ) ) # end td ), # end Tr Tr( td( { -colspan => "2", -style => "background-color:#CCCCCC" }, input ( { -name => "remember", -type => "checkbox"} ), " Remember my ID on this computer. ", ) # end td ), # end Tr ), # End table p( input( { -type => "submit", -value => "Login"} ), " ", input( { -type => "reset"} ), ), # end p end_form, ), # End div end_html;
When a user clicks on "login", how would one authenticate this? Does this information pass to another cgi? (and if so, how). Does Ovid contend 'this' script is named login.cgi? I understand that it was beyond the scope of his lesson, but I just want to learn ... and I hear you can help ;-)

thanks, me


In reply to cgi form action by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.