in reply to cgi form action

well, if the user clicks on "login", the data in the form will be send using a HTTP POST to a script called login.cgi. the rest (athentication) is then up to the login.cgi script.

Replies are listed 'Best First'.
Re: Re: cgi form action
by Anonymous Monk on Feb 27, 2004 at 22:00 UTC
    Thanks esskar, Another stupid question (since it just isn't clicking) ... how does login.cgi receive this information, via the URL:

    http://<wherever>/cgi-bin/login.cgi?username=<whatever>+password=<whatever>

    or does is this away from the browser, login.cgi is called (like a shell out), or have I just missed the boat?

    I'm sorry I'm being so stupid with this, it doesn't seem hard, but I just don't grasp it.

    thanks, me

      There are two methods of sending data GET and POST. Your sample script is using POST (change that word to GET and you'll see the difference). GET sends data like this:

      http://www.foobar.com/cgi-bin/scriptname.cgi?param1=something&param2=s +omething....

      "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce