=========================================================================== Today on The World Vol. 4 #163 Wednesday, June 24, 1998 =========================================================================== Continuing the HTML lessons... Remember that you can find the other chapters on http://world.std.com/help/web/tutorial for now. (kibo) --------------------------------------------------------------------------- HTML TUTORIAL -- CHAPTER 12 -- FORMS 12.1 Forms & CGIs For a Web page to get some input from its readers and then act upon this input requires two things: a
section of HTML, and a CGI (Common Gateway Interface) program running on the Web server. CGIs are programs that get data from the reader's Web browser (usually when they submit a form) and do something with this data, sometimes generating a "custom" page based on the input data, other times simply logging the data or mailing it. You can do arbitrary things with CGIs (providing you can write your own CGI programs) but for purposes of this chapter I'm only going to talk about one on The World which turns an HTML form into an E-mail message. (This lesson will not necessarily apply to building Web pages hosted on other Internet Service Providers because they may provide a different CGI for turning forms into E-mail.) Let's get started with your first form. Add this to the body of one of your practice Web pages: View that in your browser and see what happens. We've made a non-working form (there's no way to submit the data, and it hasn't been told where to send it anyway) but you should have two blanks that you can use to type text. Notice the structure of our minimalist form: contains the entire form, including some "regular" text that gives the reader instructions. The data is entered into fields created by tags (one or more of them). There is no , meaning is one of those few HTML tags that doesn't need a closing tag (