- Interactive Forms: By adding interactive HTML forms to your Web site, you can enable visitors to search and order from a catalog of products, apply for membership in your organization, register in your site's guestbook, answer surveys and more! We will teach you to build professional, attractive HTML forms that are easy for your site's visitors to use.
- CGI Scripting: When a visitor to your site clicks on the Submit button, the information they entered into your form is sent to a CGI (Common Gateway Interface) script on your server. This script can do one or several things with the information, it can save the data to a database, or to a text file, return input to the user's Web browser, E-mail it to an address, or processes it in some other way. You will learn to use the very popular Perl scripting language to write and debug some basic and useful CGI scripts.
The course includes a fully illustrated workbook, an HTML reference card by SSC, and O'Reilly & Associates' Web Design in a Nutshell, and handouts.
- To learn how to build attractive, easy-to-use forms that will transform your site into an interactive experience for its users
- To develop the basic Perl scripting skills necessary to write programs that will process information entered into these forms. Students will learn how to write scripts that save entered information to a file or send it to an E-mail address.
- The appearance and functionality of your web site are critical.
- Most Web sites are flat ads, no better than print advertisements. By developing and creatively applying interactive forms, you can transform your site into a truly interactive experience.
9:20 Creating Forms (discussion and hands-on)
- A discussion of the possible uses of interactive forms
- Guest books
- Product order forms
- Searchable databases of products or documents
- And more!
- Laying out text and fields in your forms
- Check boxes, radio buttons, and pull-down menus
- Exercise: Students will create a form for a guest book.
10:30 The Basics of the Perl Scripting Language (discussion and hands-on exercises)
- How do I create a CGI script using Perl?
- The print statement
- Using a CGI script to dynamically create Web pages based on data entered into a form
11:25 CGI Script Exercise: Mailing Information Entered into a Form (discussion and hands-on)
- Students will write key pieces of a Perl script that will take information entered into their guest book form and mail it to a pre-defined address.
1:30 CGI Script Exercise: Using If-Else Conditionals to Handle (discussion and hands-on)
2:15 Using Perl’s AND and OR Logic Operators (discussion)
- Differences between server-based and client-based interaction and their implications for web site development
- HTML buttons
- The onClick event handler
- How to use the document.bgcolor property to set the background color of a page
- The onSubmit event handler
- Exercise: Enhancing your guestbook to ensure that visitors enter their first and last names.